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