rust/src/test/ui/attempted-access-non-fatal.rs
2018-12-25 21:08:33 -07:00

7 lines
269 B
Rust

// 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]
}