]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.rs
Auto merge of #107663 - matthiaskrgr:107423-point-at-EOF-code, r=compiler-errors
[rust.git] / tests / ui / typeck / do-not-suggest-adding-missing-zero-to-floating-point-number.rs
1 macro_rules! num { () => { 1 } }
2
3 fn main() {
4     let x = 1i32;
5     x.e10; //~ERROR `i32` is a primitive type and therefore doesn't have fields
6
7     let y = 1;
8     y.e10; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
9
10     2u32.e10; //~ERROR `u32` is a primitive type and therefore doesn't have fields
11
12     num!().e10; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
13
14     2.e10foo; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
15
16     42._;
17     //~^ERROR expected identifier, found reserved identifier `_`
18     //~|ERROR `{integer}` is a primitive type and therefore doesn't have fields
19
20     42.a; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
21 }