Debian Codegraph @

gcc/testsuite/rust/compile/name_resolution13.rs

raw
1 // { dg-options "-frust-name-resolution-2.0" }
2
3 pub mod foo {
4 pub macro bar() {}
5 }
6
7 fn foo() {
8 let b = 10;
9 fn bar() {
10 let c = b;
11 // { dg-error "cannot find value .b. in this scope .E0425." "" { target *-*-* } .-1 }
12 }
13 }