aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/name_resolution18.rs
blob: 5940149d3bbfe693b95382b5c5ed753a5353ffa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options "-frust-name-resolution-2.0" }

struct Marker;

struct Foo {
    a: Marker,
}

pub mod foo {
    struct Foo {
        b: Marker,
    }
}

use foo::Foo; // { dg-error ".Foo. defined multiple times" }