aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/name_resolution17.rs
blob: 485947647a9566a0edd20f6d2aae456f3cc9743e (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-options "-frust-name-resolution-2.0" }

struct Foo;
fn Foo() {} // { dg-error ".Foo. defined multiple times" }

struct Marker;
struct Bar {
    a: Marker,
}
fn Bar() {} // ok, since `Bar` is not a value here