]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attempted-access-non-fatal.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[rust.git] / src / test / 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 }