aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/name_resolution12.rs
blob: 9cce31ceb5c296ce4c386934338bca91894190b6 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-additional-options "-frust-name-resolution-2.0 -frust-compile-until=lowering" }

const TOTO: i32 = 10;

fn foo() {
    let b = 10;
    fn bar() {
        let e = TOTO;
    }
}