Debian Codegraph @

gcc/testsuite/rust/compile/name_resolution18.rs

raw
1 // { dg-options "-frust-name-resolution-2.0" }
2
3 struct Marker;
4
5 struct Foo {
6 a: Marker,
7 }
8
9 pub mod foo {
10 struct Foo {
11 b: Marker,
12 }
13 }
14
15 use foo::Foo; // { dg-error ".Foo. defined multiple times" }