summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attempted-access-non-fatal.rs
blob: e50c1f23c51cc8d68135f295f8ee3b988b9c53d7 (plain)
1
2
3
4
5
6
// Check that bogus field access is non-fatal
fn main() {
    let x = 0;
    let _ = x.foo; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
    let _ = x.bar; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
}