From e2bba0708a1e4b0c21f94de56c2bd5d66d3b825f Mon Sep 17 00:00:00 2001 From: Esteban Kuber Date: Sat, 26 Mar 2022 23:14:47 +0000 Subject: Fix list length --- .../not-suggest-float-literal.stderr | 48 ++++++++++++++++++++++ .../suggest-float-literal.stderr | 32 +++++++++++++++ 2 files changed, 80 insertions(+) (limited to 'src/test/ui/numbers-arithmetic') diff --git a/src/test/ui/numbers-arithmetic/not-suggest-float-literal.stderr b/src/test/ui/numbers-arithmetic/not-suggest-float-literal.stderr index d8bba1509d8..431cbf81b01 100644 --- a/src/test/ui/numbers-arithmetic/not-suggest-float-literal.stderr +++ b/src/test/ui/numbers-arithmetic/not-suggest-float-literal.stderr @@ -10,6 +10,10 @@ LL | x + 100.0 <&u8 as Add<&u8>> > + <&'a f32 as Add> + <&'a f64 as Add> + <&'a i128 as Add> + <&'a i16 as Add> and 48 others error[E0277]: cannot add `&str` to `f64` @@ -24,6 +28,10 @@ LL | x + "foo" <&f64 as Add<&f64>> > + <&'a f32 as Add> + <&'a i128 as Add> + <&'a i16 as Add> + <&'a i32 as Add> and 48 others error[E0277]: cannot add `{integer}` to `f64` @@ -38,6 +46,10 @@ LL | x + y <&f64 as Add<&f64>> > + <&'a f32 as Add> + <&'a i128 as Add> + <&'a i16 as Add> + <&'a i32 as Add> and 48 others error[E0277]: cannot subtract `{float}` from `u8` @@ -52,6 +64,10 @@ LL | x - 100.0 <&u8 as Sub<&u8>> > + <&'a f32 as Sub> + <&'a f64 as Sub> + <&'a i128 as Sub> + <&'a i16 as Sub> and 48 others error[E0277]: cannot subtract `&str` from `f64` @@ -66,6 +82,10 @@ LL | x - "foo" <&f64 as Sub<&f64>> > + <&'a f32 as Sub> + <&'a i128 as Sub> + <&'a i16 as Sub> + <&'a i32 as Sub> and 48 others error[E0277]: cannot subtract `{integer}` from `f64` @@ -80,6 +100,10 @@ LL | x - y <&f64 as Sub<&f64>> > + <&'a f32 as Sub> + <&'a i128 as Sub> + <&'a i16 as Sub> + <&'a i32 as Sub> and 48 others error[E0277]: cannot multiply `u8` by `{float}` @@ -94,6 +118,10 @@ LL | x * 100.0 <&u8 as Mul<&u8>> > + <&'a f32 as Mul> + <&'a f64 as Mul> + <&'a i128 as Mul> + <&'a i16 as Mul> and 49 others error[E0277]: cannot multiply `f64` by `&str` @@ -108,6 +136,10 @@ LL | x * "foo" <&f64 as Mul<&f64>> > + <&'a f32 as Mul> + <&'a i128 as Mul> + <&'a i16 as Mul> + <&'a i32 as Mul> and 49 others error[E0277]: cannot multiply `f64` by `{integer}` @@ -122,6 +154,10 @@ LL | x * y <&f64 as Mul<&f64>> > + <&'a f32 as Mul> + <&'a i128 as Mul> + <&'a i16 as Mul> + <&'a i32 as Mul> and 49 others error[E0277]: cannot divide `u8` by `{float}` @@ -136,6 +172,10 @@ LL | x / 100.0 <&u8 as Div<&u8>> > > + + <&'a f32 as Div> + <&'a f64 as Div> + <&'a i128 as Div> and 54 others error[E0277]: cannot divide `f64` by `&str` @@ -150,6 +190,10 @@ LL | x / "foo" <&f64 as Div<&f64>> > + <&'a f32 as Div> + <&'a i128 as Div> + <&'a i16 as Div> + <&'a i32 as Div> and 54 others error[E0277]: cannot divide `f64` by `{integer}` @@ -164,6 +208,10 @@ LL | x / y <&f64 as Div<&f64>> > + <&'a f32 as Div> + <&'a i128 as Div> + <&'a i16 as Div> + <&'a i32 as Div> and 54 others error: aborting due to 12 previous errors diff --git a/src/test/ui/numbers-arithmetic/suggest-float-literal.stderr b/src/test/ui/numbers-arithmetic/suggest-float-literal.stderr index b7591dfca99..543e3137fdd 100644 --- a/src/test/ui/numbers-arithmetic/suggest-float-literal.stderr +++ b/src/test/ui/numbers-arithmetic/suggest-float-literal.stderr @@ -10,6 +10,10 @@ LL | x + 100 <&f32 as Add<&f32>> > + <&'a f64 as Add> + <&'a i128 as Add> + <&'a i16 as Add> + <&'a i32 as Add> and 48 others help: consider using a floating-point literal by writing it with `.0` | @@ -28,6 +32,10 @@ LL | x + 100 <&f64 as Add<&f64>> > + <&'a f32 as Add> + <&'a i128 as Add> + <&'a i16 as Add> + <&'a i32 as Add> and 48 others help: consider using a floating-point literal by writing it with `.0` | @@ -46,6 +54,10 @@ LL | x - 100 <&f32 as Sub<&f32>> > + <&'a f64 as Sub> + <&'a i128 as Sub> + <&'a i16 as Sub> + <&'a i32 as Sub> and 48 others help: consider using a floating-point literal by writing it with `.0` | @@ -64,6 +76,10 @@ LL | x - 100 <&f64 as Sub<&f64>> > + <&'a f32 as Sub> + <&'a i128 as Sub> + <&'a i16 as Sub> + <&'a i32 as Sub> and 48 others help: consider using a floating-point literal by writing it with `.0` | @@ -82,6 +98,10 @@ LL | x * 100 <&f32 as Mul<&f32>> > + <&'a f64 as Mul> + <&'a i128 as Mul> + <&'a i16 as Mul> + <&'a i32 as Mul> and 49 others help: consider using a floating-point literal by writing it with `.0` | @@ -100,6 +120,10 @@ LL | x * 100 <&f64 as Mul<&f64>> > + <&'a f32 as Mul> + <&'a i128 as Mul> + <&'a i16 as Mul> + <&'a i32 as Mul> and 49 others help: consider using a floating-point literal by writing it with `.0` | @@ -118,6 +142,10 @@ LL | x / 100 <&f32 as Div<&f32>> > + <&'a f64 as Div> + <&'a i128 as Div> + <&'a i16 as Div> + <&'a i32 as Div> and 54 others help: consider using a floating-point literal by writing it with `.0` | @@ -136,6 +164,10 @@ LL | x / 100 <&f64 as Div<&f64>> > + <&'a f32 as Div> + <&'a i128 as Div> + <&'a i16 as Div> + <&'a i32 as Div> and 54 others help: consider using a floating-point literal by writing it with `.0` | -- cgit 1.4.1-3-g733a5