]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / suggestions / unnecessary_dot_for_floating_point_literal.rs
1 fn main() {
2     let _: f64 = 0..10; //~ ERROR mismatched types
3     let _: f64 = 1..; //~ ERROR mismatched types
4     let _: f64 = ..10; //~ ERROR mismatched types
5     let _: f64 = std::ops::Range { start: 0, end: 1 }; //~ ERROR mismatched types
6 }