summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/issue-36798.rs
blob: 89d71d83151db5ceeae1670fda0e042d5a9780ef (plain)
1
2
3
4
5
6
7
8
struct Foo {
    bar: u8
}

fn main() {
    let f = Foo { bar: 22 };
    f.baz; //~ ERROR no field
}