fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: cannot add `{float}` to `u8` 2 --> $DIR/not-suggest-float-literal.rs:2:7 3 | 4LL | x + 100.0 5 | ^ no implementation for `u8 + {float}` 6 | 7 = help: the trait `Add<{float}>` is not implemented for `u8` 8 = help: the following other types implement trait `Add<Rhs>`: 9 <u8 as Add> 10 <u8 as Add<&u8>> 11 <&'a u8 as Add<u8>> 12 <&u8 as Add<&u8>> 13 14error[E0277]: cannot add `&str` to `f64` 15 --> $DIR/not-suggest-float-literal.rs:6:7 16 | 17LL | x + "foo" 18 | ^ no implementation for `f64 + &str` 19 | 20 = help: the trait `Add<&str>` is not implemented for `f64` 21 = help: the following other types implement trait `Add<Rhs>`: 22 <f64 as Add> 23 <f64 as Add<&f64>> 24 <&'a f64 as Add<f64>> 25 <&f64 as Add<&f64>> 26 27error[E0277]: cannot add `{integer}` to `f64` 28 --> $DIR/not-suggest-float-literal.rs:11:7 29 | 30LL | x + y 31 | ^ no implementation for `f64 + {integer}` 32 | 33 = help: the trait `Add<{integer}>` is not implemented for `f64` 34 = help: the following other types implement trait `Add<Rhs>`: 35 <f64 as Add> 36 <f64 as Add<&f64>> 37 <&'a f64 as Add<f64>> 38 <&f64 as Add<&f64>> 39 40error[E0277]: cannot subtract `{float}` from `u8` 41 --> $DIR/not-suggest-float-literal.rs:15:7 42 | 43LL | x - 100.0 44 | ^ no implementation for `u8 - {float}` 45 | 46 = help: the trait `Sub<{float}>` is not implemented for `u8` 47 = help: the following other types implement trait `Sub<Rhs>`: 48 <u8 as Sub> 49 <u8 as Sub<&u8>> 50 <&'a u8 as Sub<u8>> 51 <&u8 as Sub<&u8>> 52 53error[E0277]: cannot subtract `&str` from `f64` 54 --> $DIR/not-suggest-float-literal.rs:19:7 55 | 56LL | x - "foo" 57 | ^ no implementation for `f64 - &str` 58 | 59 = help: the trait `Sub<&str>` is not implemented for `f64` 60 = help: the following other types implement trait `Sub<Rhs>`: 61 <f64 as Sub> 62 <f64 as Sub<&f64>> 63 <&'a f64 as Sub<f64>> 64 <&f64 as Sub<&f64>> 65 66error[E0277]: cannot subtract `{integer}` from `f64` 67 --> $DIR/not-suggest-float-literal.rs:24:7 68 | 69LL | x - y 70 | ^ no implementation for `f64 - {integer}` 71 | 72 = help: the trait `Sub<{integer}>` is not implemented for `f64` 73 = help: the following other types implement trait `Sub<Rhs>`: 74 <f64 as Sub> 75 <f64 as Sub<&f64>> 76 <&'a f64 as Sub<f64>> 77 <&f64 as Sub<&f64>> 78 79error[E0277]: cannot multiply `u8` by `{float}` 80 --> $DIR/not-suggest-float-literal.rs:28:7 81 | 82LL | x * 100.0 83 | ^ no implementation for `u8 * {float}` 84 | 85 = help: the trait `Mul<{float}>` is not implemented for `u8` 86 = help: the following other types implement trait `Mul<Rhs>`: 87 <u8 as Mul> 88 <u8 as Mul<&u8>> 89 <&'a u8 as Mul<u8>> 90 <&u8 as Mul<&u8>> 91 92error[E0277]: cannot multiply `f64` by `&str` 93 --> $DIR/not-suggest-float-literal.rs:32:7 94 | 95LL | x * "foo" 96 | ^ no implementation for `f64 * &str` 97 | 98 = help: the trait `Mul<&str>` is not implemented for `f64` 99 = help: the following other types implement trait `Mul<Rhs>`: 100 <f64 as Mul> 101 <f64 as Mul<&f64>> 102 <&'a f64 as Mul<f64>> 103 <&f64 as Mul<&f64>> 104 105error[E0277]: cannot multiply `f64` by `{integer}` 106 --> $DIR/not-suggest-float-literal.rs:37:7 107 | 108LL | x * y 109 | ^ no implementation for `f64 * {integer}` 110 | 111 = help: the trait `Mul<{integer}>` is not implemented for `f64` 112 = help: the following other types implement trait `Mul<Rhs>`: 113 <f64 as Mul> 114 <f64 as Mul<&f64>> 115 <&'a f64 as Mul<f64>> 116 <&f64 as Mul<&f64>> 117 118error[E0277]: cannot divide `u8` by `{float}` 119 --> $DIR/not-suggest-float-literal.rs:41:7 120 | 121LL | x / 100.0 122 | ^ no implementation for `u8 / {float}` 123 | 124 = help: the trait `Div<{float}>` is not implemented for `u8` 125 = help: the following other types implement trait `Div<Rhs>`: 126 <u8 as Div> 127 <u8 as Div<NonZeroU8>> 128 <u8 as Div<&u8>> 129 <&'a u8 as Div<u8>> 130 <&u8 as Div<&u8>> 131 132error[E0277]: cannot divide `f64` by `&str` 133 --> $DIR/not-suggest-float-literal.rs:45:7 134 | 135LL | x / "foo" 136 | ^ no implementation for `f64 / &str` 137 | 138 = help: the trait `Div<&str>` is not implemented for `f64` 139 = help: the following other types implement trait `Div<Rhs>`: 140 <f64 as Div> 141 <f64 as Div<&f64>> 142 <&'a f64 as Div<f64>> 143 <&f64 as Div<&f64>> 144 145error[E0277]: cannot divide `f64` by `{integer}` 146 --> $DIR/not-suggest-float-literal.rs:50:7 147 | 148LL | x / y 149 | ^ no implementation for `f64 / {integer}` 150 | 151 = help: the trait `Div<{integer}>` is not implemented for `f64` 152 = help: the following other types implement trait `Div<Rhs>`: 153 <f64 as Div> 154 <f64 as Div<&f64>> 155 <&'a f64 as Div<f64>> 156 <&f64 as Div<&f64>> 157 158error: aborting due to 12 previous errors 159 160For more information about this error, try `rustc --explain E0277`.