rust/tests/ui/error-codes/E0609.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
158 B
Rust
Raw Normal View History

2017-06-10 14:19:40 -05:00
struct Foo {
x: u32,
}
2017-06-30 13:36:51 -05:00
struct Bar;
2017-06-10 14:19:40 -05:00
fn main() {
let x = Foo { x: 0 };
let _ = x.foo; //~ ERROR E0609
2017-06-30 13:36:51 -05:00
let y = Bar;
y.1; //~ ERROR E0609
2017-06-10 14:19:40 -05:00
}