1 error[E0308]: mismatched types
2 --> $DIR/unnecessary_dot_for_floating_point_literal.rs:2:18
4 LL | let _: f64 = 0..10;
5 | --- ^^^^^ expected `f64`, found struct `Range`
9 = note: expected type `f64`
10 found struct `std::ops::Range<{integer}>`
11 help: remove the unnecessary `.` operator for a floating point literal
13 LL | let _: f64 = 0.10;
16 error[E0308]: mismatched types
17 --> $DIR/unnecessary_dot_for_floating_point_literal.rs:3:18
19 LL | let _: f64 = 1..;
20 | --- ^^^ expected `f64`, found struct `RangeFrom`
22 | expected due to this
24 = note: expected type `f64`
25 found struct `RangeFrom<{integer}>`
26 help: remove the unnecessary `.` operator for a floating point literal
31 error[E0308]: mismatched types
32 --> $DIR/unnecessary_dot_for_floating_point_literal.rs:4:18
34 LL | let _: f64 = ..10;
35 | --- ^^^^ expected `f64`, found struct `RangeTo`
37 | expected due to this
39 = note: expected type `f64`
40 found struct `RangeTo<{integer}>`
41 help: remove the unnecessary `.` operator and add an integer part for a floating point literal
43 LL | let _: f64 = 0.10;
46 error[E0308]: mismatched types
47 --> $DIR/unnecessary_dot_for_floating_point_literal.rs:5:18
49 LL | let _: f64 = std::ops::Range { start: 0, end: 1 };
50 | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `f64`, found struct `Range`
52 | expected due to this
54 = note: expected type `f64`
55 found struct `std::ops::Range<{integer}>`
57 error: aborting due to 4 previous errors
59 For more information about this error, try `rustc --explain E0308`.