2021-07-15 08:44:10 +00:00
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:22:17
|
2021-07-15 08:44:10 +00: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-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:23:18
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let x = [1., 2., 3.];
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:23:22
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let x = [1., 2., 3.];
|
|
|
|
| ^^ help: consider adding suffix: `2.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:23:26
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let x = [1., 2., 3.];
|
|
|
|
| ^^ help: consider adding suffix: `3.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:24:28
|
2021-07-15 08:44:10 +00: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-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:24:32
|
2021-07-15 08:44:10 +00: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-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:24:46
|
2021-07-15 08:44:10 +00: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-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:24:50
|
2021-07-15 08:44:10 +00: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-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:25:23
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let x = match 1. {
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:26:18
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | _ => 1.,
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:45:21
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1.;
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:53:21
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1.;
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:59:21
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1.;
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:67:21
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
|
|
|
LL | let y = 1.;
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:79:9
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | 1.
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:85:27
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let f = || -> _ { 1. };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:89:29
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let f = || -> f64 { 1. };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:103:21
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | generic_arg(1.);
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:106:32
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let x: _ = generic_arg(1.);
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:124:28
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | GenericStruct { x: 1. };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:127:36
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let _ = GenericStruct { x: 1. };
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:145:24
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | GenericEnum::X(1.);
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:165:23
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | s.generic_arg(1.);
|
|
|
|
| ^^ help: consider adding suffix: `1.0_f64`
|
|
|
|
|
|
|
|
error: default numeric fallback might occur
|
2023-03-10 09:53:50 +00:00
|
|
|
--> $DIR/default_numeric_fallback_f64.rs:172:21
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
LL | let x = 22.;
|
|
|
|
| ^^^ help: consider adding suffix: `22.0_f64`
|
|
|
|
...
|
|
|
|
LL | internal_macro!();
|
2021-10-14 18:28:30 +00:00
|
|
|
| ----------------- in this macro invocation
|
2021-07-15 08:44:10 +00:00
|
|
|
|
|
|
|
|
= note: this error originates in the macro `internal_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2022-10-23 13:18:45 +00:00
|
|
|
error: aborting due to 24 previous errors
|
2021-07-15 08:44:10 +00:00
|
|
|
|