summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0609.rs
blob: e3a97f2fb265df1275d29c731bd31b8ec64b39ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}