]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.fixed
fn-trait-closure test now pass on new solver
[rust.git] / tests / ui / typeck / suggest-adding-missing-zero-to-floating-point-number.fixed
1 // run-rustfix
2
3 fn main() {
4     2.0e1; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
5     2.0E1; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
6     2.0f32; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
7     2.0f64; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
8     2.0e+12; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
9     2.0e-12; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
10     2.0e1f32; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
11 }