mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
13 lines
158 B
Rust
13 lines
158 B
Rust
struct Foo {
|
|
x: u32,
|
|
}
|
|
struct Bar;
|
|
|
|
fn main() {
|
|
let x = Foo { x: 0 };
|
|
let _ = x.foo; //~ ERROR E0609
|
|
|
|
let y = Bar;
|
|
y.1; //~ ERROR E0609
|
|
}
|