mirror of https://github.com/rust-lang/rust
21 lines
349 B
Rust
21 lines
349 B
Rust
mod foo {
|
|
struct A;
|
|
mod bar {
|
|
struct B;
|
|
}
|
|
}
|
|
|
|
struct Foo {
|
|
a: foo:A,
|
|
//~^ ERROR found single colon in a struct field type path
|
|
//~| expected `,`, or `}`, found `:`
|
|
}
|
|
|
|
struct Bar {
|
|
b: foo::bar:B,
|
|
//~^ ERROR found single colon in a struct field type path
|
|
//~| expected `,`, or `}`, found `:`
|
|
}
|
|
|
|
fn main() {}
|