]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.rs
Rollup merge of #100984 - ChrisDenton:reinstate-init, r=Mark-Simulacrum
[rust.git] / src / test / ui / typeck / suggest-adding-missing-zero-to-floating-point-number.rs
1 // run-rustfix
2
3 fn main() {
4     2.e1; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
5     2.E1; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
6     2.f32; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
7     2.f64; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
8     2.e+12; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
9     2.e-12; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
10     2.e1f32; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
11 }