rust/tests/ui/error-codes/ex-E0612.rs

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

7 lines
96 B
Rust
Raw Normal View History

2017-06-12 14:10:53 -05:00
struct Foo(u32);
fn main() {
let y = Foo(0);
y.1; //~ ERROR no field `1` on type `Foo`
2017-06-12 14:10:53 -05:00
}