summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.fixed
blob: ba83e79005b33feea10a38698932daf020688978 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix

fn main() {
    2.0e1; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
    2.0E1; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
    2.0f32; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
    2.0f64; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
    2.0e+12; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
    2.0e-12; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
    2.0e1f32; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
}