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 19:19:40 +00:00
struct Foo {
x: u32,
}
2017-06-30 18:36:51 +00:00
struct Bar;
2017-06-10 19:19:40 +00:00
fn main() {
let x = Foo { x: 0 };
let _ = x.foo; //~ ERROR E0609
2017-06-30 18:36:51 +00:00
let y = Bar;
y.1; //~ ERROR E0609
2017-06-10 19:19:40 +00:00
}