2012-01-28 00:38:57 +00:00
|
|
|
// Check that bogus field access is non-fatal
|
|
|
|
fn main() {
|
|
|
|
let x = 0;
|
2017-06-11 17:48:46 +00:00
|
|
|
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]
|
2022-08-16 02:50:04 +00:00
|
|
|
let _ = 0.f; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
|
|
|
|
let _ = 2.l; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
|
|
|
|
let _ = 12.F; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
|
|
|
|
let _ = 34.L; //~ `{integer}` is a primitive type and therefore doesn't have fields [E0610]
|
2013-02-14 19:47:00 +00:00
|
|
|
}
|