]> git.lizzy.rs Git - rust.git/blob - tests/ui/attempted-access-non-fatal.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / attempted-access-non-fatal.rs
1 // Check that bogus field access is non-fatal
2 fn main() {
3     let x = 0;
4     let _ = x.foo; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
5     let _ = x.bar; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
6     let _ = 0.f; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
7     let _ = 2.l; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
8     let _ = 12.F; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
9     let _ = 34.L; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
10 }