2021-07-15 03:44:10 -05:00
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:21:17
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = 0.12;
|
|
|
|
| ^^^^ help: consider adding suffix: `0.12_f64`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::default-numeric-fallback` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:22:18
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = [1., 2., 3.];
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:22:22
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = [1., 2., 3.];
|
|
|
|
| ^^ help: consider adding suffix: `2.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:22:26
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = [1., 2., 3.];
|
|
|
|
| ^^ help: consider adding suffix: `3.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:23:28
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1., 2.) } else { (3., 4.) };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:23:32
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1., 2.) } else { (3., 4.) };
|
|
|
|
| ^^ help: consider adding suffix: `2.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:23:46
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1., 2.) } else { (3., 4.) };
|
|
|
|
| ^^ help: consider adding suffix: `3.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:23:50
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = if true { (1., 2.) } else { (3., 4.) };
|
|
|
|
| ^^ help: consider adding suffix: `4.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:24:23
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x = match 1. {
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:25:18
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | _ => 1.,
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:44:21
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let y = 1.;
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:52:21
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let y = 1.;
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:58:21
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let y = 1.;
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:66:21
|
2022-10-12 05:04:41 -05:00
|
|
|
|
|
|
|
|
LL | let y = 1.;
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:78:9
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | 1.
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:84:27
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let f = || -> _ { 1. };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:88:29
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let f = || -> f64 { 1. };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:102:21
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | generic_arg(1.);
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:105:32
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let x: _ = generic_arg(1.);
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:123:28
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | GenericStruct { x: 1. };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:126:36
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | let _ = GenericStruct { x: 1. };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:144:24
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | GenericEnum::X(1.);
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:164:23
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
|
|
|
LL | s.generic_arg(1.);
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:174:25
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
LL | inline!(let x = 22.;);
|
|
|
|
| ^^^ help: consider adding suffix: `22.0_f64`
|
2021-07-15 03:44:10 -05:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-07-15 03:44:10 -05:00
|
|
|
|
2022-10-12 05:04:41 -05:00
|
|
|
error: aborting due to 24 previous errors
|
2021-07-15 03:44:10 -05:00
|
|
|
|