]> git.proxmox.com Git - rustc.git/blame - tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / suggestions / unnecessary_dot_for_floating_point_literal.stderr
CommitLineData
487cf647
FG
1error[E0308]: mismatched types
2 --> $DIR/unnecessary_dot_for_floating_point_literal.rs:2:18
3 |
4LL | let _: f64 = 0..10;
9ffffee4 5 | --- ^^^^^ expected `f64`, found `Range<{integer}>`
487cf647
FG
6 | |
7 | expected due to this
8 |
9 = note: expected type `f64`
10 found struct `std::ops::Range<{integer}>`
11help: remove the unnecessary `.` operator for a floating point literal
12 |
13LL | let _: f64 = 0.10;
14 | ~
15
16error[E0308]: mismatched types
17 --> $DIR/unnecessary_dot_for_floating_point_literal.rs:3:18
18 |
19LL | let _: f64 = 1..;
9ffffee4 20 | --- ^^^ expected `f64`, found `RangeFrom<{integer}>`
487cf647
FG
21 | |
22 | expected due to this
23 |
24 = note: expected type `f64`
25 found struct `RangeFrom<{integer}>`
26help: remove the unnecessary `.` operator for a floating point literal
27 |
28LL | let _: f64 = 1.;
29 | ~
30
31error[E0308]: mismatched types
32 --> $DIR/unnecessary_dot_for_floating_point_literal.rs:4:18
33 |
34LL | let _: f64 = ..10;
9ffffee4 35 | --- ^^^^ expected `f64`, found `RangeTo<{integer}>`
487cf647
FG
36 | |
37 | expected due to this
38 |
39 = note: expected type `f64`
40 found struct `RangeTo<{integer}>`
41help: remove the unnecessary `.` operator and add an integer part for a floating point literal
42 |
43LL | let _: f64 = 0.10;
44 | ~~
45
46error[E0308]: mismatched types
47 --> $DIR/unnecessary_dot_for_floating_point_literal.rs:5:18
48 |
49LL | let _: f64 = std::ops::Range { start: 0, end: 1 };
9ffffee4 50 | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `f64`, found `Range<{integer}>`
487cf647
FG
51 | |
52 | expected due to this
53 |
54 = note: expected type `f64`
55 found struct `std::ops::Range<{integer}>`
56
57error: aborting due to 4 previous errors
58
59For more information about this error, try `rustc --explain E0308`.