summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/recover-invalid-float.stderr
blob: dd24746eab80f435dfdfb12f93225ea8a3fa9f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: float literals must have an integer part
  --> $DIR/recover-invalid-float.rs:4:18
   |
LL |     let _: f32 = .3;
   |                  ^^ help: must have an integer part: `0.3`

error: float literals must have an integer part
  --> $DIR/recover-invalid-float.rs:6:18
   |
LL |     let _: f32 = .42f32;
   |                  ^^^^^^ help: must have an integer part: `0.42f32`

error: float literals must have an integer part
  --> $DIR/recover-invalid-float.rs:8:18
   |
LL |     let _: f64 = .5f64;
   |                  ^^^^^ help: must have an integer part: `0.5f64`

error: aborting due to 3 previous errors