diff options
Diffstat (limited to 'tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs')
-rw-r--r-- | tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs b/tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs new file mode 100644 index 000000000..c1a944562 --- /dev/null +++ b/tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs @@ -0,0 +1,6 @@ +fn main() { + let _: f64 = 0..10; //~ ERROR mismatched types + let _: f64 = 1..; //~ ERROR mismatched types + let _: f64 = ..10; //~ ERROR mismatched types + let _: f64 = std::ops::Range { start: 0, end: 1 }; //~ ERROR mismatched types +} |