diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2022-03-26 23:14:47 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2022-04-04 21:06:35 +0000 |
| commit | e2bba0708a1e4b0c21f94de56c2bd5d66d3b825f (patch) | |
| tree | f69b605da80489e297384a9fdde5cc99396f4e8c /src/test/ui/numbers-arithmetic | |
| parent | 883b93c7b7eb02ec85f4b8f9fb129efc403d4fb2 (diff) | |
| download | rust-e2bba0708a1e4b0c21f94de56c2bd5d66d3b825f.tar.gz rust-e2bba0708a1e4b0c21f94de56c2bd5d66d3b825f.zip | |
Fix list length
Diffstat (limited to 'src/test/ui/numbers-arithmetic')
| -rw-r--r-- | src/test/ui/numbers-arithmetic/not-suggest-float-literal.stderr | 48 | ||||
| -rw-r--r-- | src/test/ui/numbers-arithmetic/suggest-float-literal.stderr | 32 |
2 files changed, 80 insertions, 0 deletions
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>> <u8 as Add<&u8>> <u8 as Add> + <&'a f32 as Add<f32>> + <&'a f64 as Add<f64>> + <&'a i128 as Add<i128>> + <&'a i16 as Add<i16>> and 48 others error[E0277]: cannot add `&str` to `f64` @@ -24,6 +28,10 @@ LL | x + "foo" <&f64 as Add<&f64>> <f64 as Add<&f64>> <f64 as Add> + <&'a f32 as Add<f32>> + <&'a i128 as Add<i128>> + <&'a i16 as Add<i16>> + <&'a i32 as Add<i32>> and 48 others error[E0277]: cannot add `{integer}` to `f64` @@ -38,6 +46,10 @@ LL | x + y <&f64 as Add<&f64>> <f64 as Add<&f64>> <f64 as Add> + <&'a f32 as Add<f32>> + <&'a i128 as Add<i128>> + <&'a i16 as Add<i16>> + <&'a i32 as Add<i32>> and 48 others error[E0277]: cannot subtract `{float}` from `u8` @@ -52,6 +64,10 @@ LL | x - 100.0 <&u8 as Sub<&u8>> <u8 as Sub<&u8>> <u8 as Sub> + <&'a f32 as Sub<f32>> + <&'a f64 as Sub<f64>> + <&'a i128 as Sub<i128>> + <&'a i16 as Sub<i16>> and 48 others error[E0277]: cannot subtract `&str` from `f64` @@ -66,6 +82,10 @@ LL | x - "foo" <&f64 as Sub<&f64>> <f64 as Sub<&f64>> <f64 as Sub> + <&'a f32 as Sub<f32>> + <&'a i128 as Sub<i128>> + <&'a i16 as Sub<i16>> + <&'a i32 as Sub<i32>> and 48 others error[E0277]: cannot subtract `{integer}` from `f64` @@ -80,6 +100,10 @@ LL | x - y <&f64 as Sub<&f64>> <f64 as Sub<&f64>> <f64 as Sub> + <&'a f32 as Sub<f32>> + <&'a i128 as Sub<i128>> + <&'a i16 as Sub<i16>> + <&'a i32 as Sub<i32>> and 48 others error[E0277]: cannot multiply `u8` by `{float}` @@ -94,6 +118,10 @@ LL | x * 100.0 <&u8 as Mul<&u8>> <u8 as Mul<&u8>> <u8 as Mul> + <&'a f32 as Mul<f32>> + <&'a f64 as Mul<f64>> + <&'a i128 as Mul<i128>> + <&'a i16 as Mul<i16>> and 49 others error[E0277]: cannot multiply `f64` by `&str` @@ -108,6 +136,10 @@ LL | x * "foo" <&f64 as Mul<&f64>> <f64 as Mul<&f64>> <f64 as Mul> + <&'a f32 as Mul<f32>> + <&'a i128 as Mul<i128>> + <&'a i16 as Mul<i16>> + <&'a i32 as Mul<i32>> and 49 others error[E0277]: cannot multiply `f64` by `{integer}` @@ -122,6 +154,10 @@ LL | x * y <&f64 as Mul<&f64>> <f64 as Mul<&f64>> <f64 as Mul> + <&'a f32 as Mul<f32>> + <&'a i128 as Mul<i128>> + <&'a i16 as Mul<i16>> + <&'a i32 as Mul<i32>> and 49 others error[E0277]: cannot divide `u8` by `{float}` @@ -136,6 +172,10 @@ LL | x / 100.0 <&u8 as Div<&u8>> <u8 as Div<&u8>> <u8 as Div<NonZeroU8>> + <u8 as Div> + <&'a f32 as Div<f32>> + <&'a f64 as Div<f64>> + <&'a i128 as Div<i128>> and 54 others error[E0277]: cannot divide `f64` by `&str` @@ -150,6 +190,10 @@ LL | x / "foo" <&f64 as Div<&f64>> <f64 as Div<&f64>> <f64 as Div> + <&'a f32 as Div<f32>> + <&'a i128 as Div<i128>> + <&'a i16 as Div<i16>> + <&'a i32 as Div<i32>> and 54 others error[E0277]: cannot divide `f64` by `{integer}` @@ -164,6 +208,10 @@ LL | x / y <&f64 as Div<&f64>> <f64 as Div<&f64>> <f64 as Div> + <&'a f32 as Div<f32>> + <&'a i128 as Div<i128>> + <&'a i16 as Div<i16>> + <&'a i32 as Div<i32>> 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>> <f32 as Add<&f32>> <f32 as Add> + <&'a f64 as Add<f64>> + <&'a i128 as Add<i128>> + <&'a i16 as Add<i16>> + <&'a i32 as Add<i32>> 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>> <f64 as Add<&f64>> <f64 as Add> + <&'a f32 as Add<f32>> + <&'a i128 as Add<i128>> + <&'a i16 as Add<i16>> + <&'a i32 as Add<i32>> 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>> <f32 as Sub<&f32>> <f32 as Sub> + <&'a f64 as Sub<f64>> + <&'a i128 as Sub<i128>> + <&'a i16 as Sub<i16>> + <&'a i32 as Sub<i32>> 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>> <f64 as Sub<&f64>> <f64 as Sub> + <&'a f32 as Sub<f32>> + <&'a i128 as Sub<i128>> + <&'a i16 as Sub<i16>> + <&'a i32 as Sub<i32>> 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>> <f32 as Mul<&f32>> <f32 as Mul> + <&'a f64 as Mul<f64>> + <&'a i128 as Mul<i128>> + <&'a i16 as Mul<i16>> + <&'a i32 as Mul<i32>> 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>> <f64 as Mul<&f64>> <f64 as Mul> + <&'a f32 as Mul<f32>> + <&'a i128 as Mul<i128>> + <&'a i16 as Mul<i16>> + <&'a i32 as Mul<i32>> 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>> <f32 as Div<&f32>> <f32 as Div> + <&'a f64 as Div<f64>> + <&'a i128 as Div<i128>> + <&'a i16 as Div<i16>> + <&'a i32 as Div<i32>> 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>> <f64 as Div<&f64>> <f64 as Div> + <&'a f32 as Div<f32>> + <&'a i128 as Div<i128>> + <&'a i16 as Div<i16>> + <&'a i32 as Div<i32>> and 54 others help: consider using a floating-point literal by writing it with `.0` | |
