|
| 1 | +error[E0277]: the trait bound `i8: From<&i16>` is not satisfied |
| 2 | + --> $DIR/illegal.rs:5:17 |
| 3 | + | |
| 4 | +LL | let _: i8 = From::from(&1_i16); |
| 5 | + | ^^^^^^^^^^ the trait `From<&i16>` is not implemented for `i8` |
| 6 | + | |
| 7 | + = help: the following implementations were found: |
| 8 | + <i8 as From<&bool>> |
| 9 | + <i8 as From<&i8>> |
| 10 | + <i8 as From<NonZeroI8>> |
| 11 | + <i8 as From<bool>> |
| 12 | +note: required by `from` |
| 13 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 14 | + | |
| 15 | +LL | fn from(_: T) -> Self; |
| 16 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 17 | + |
| 18 | +error[E0277]: the trait bound `i16: From<&i32>` is not satisfied |
| 19 | + --> $DIR/illegal.rs:6:18 |
| 20 | + | |
| 21 | +LL | let _: i16 = From::from(&1_i32); |
| 22 | + | ^^^^^^^^^^ the trait `From<&i32>` is not implemented for `i16` |
| 23 | + | |
| 24 | + = help: the following implementations were found: |
| 25 | + <i16 as From<&bool>> |
| 26 | + <i16 as From<&i16>> |
| 27 | + <i16 as From<&i8>> |
| 28 | + <i16 as From<&u8>> |
| 29 | + and 4 others |
| 30 | +note: required by `from` |
| 31 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 32 | + | |
| 33 | +LL | fn from(_: T) -> Self; |
| 34 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 35 | + |
| 36 | +error[E0277]: the trait bound `i32: From<&i64>` is not satisfied |
| 37 | + --> $DIR/illegal.rs:7:18 |
| 38 | + | |
| 39 | +LL | let _: i32 = From::from(&1_i64); |
| 40 | + | ^^^^^^^^^^ the trait `From<&i64>` is not implemented for `i32` |
| 41 | + | |
| 42 | + = help: the following implementations were found: |
| 43 | + <i32 as From<&bool>> |
| 44 | + <i32 as From<&i16>> |
| 45 | + <i32 as From<&i32>> |
| 46 | + <i32 as From<&i8>> |
| 47 | + and 8 others |
| 48 | +note: required by `from` |
| 49 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 50 | + | |
| 51 | +LL | fn from(_: T) -> Self; |
| 52 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 53 | + |
| 54 | +error[E0277]: the trait bound `i64: From<&i128>` is not satisfied |
| 55 | + --> $DIR/illegal.rs:8:18 |
| 56 | + | |
| 57 | +LL | let _: i64 = From::from(&1_i128); |
| 58 | + | ^^^^^^^^^^ the trait `From<&i128>` is not implemented for `i64` |
| 59 | + | |
| 60 | + = help: the following implementations were found: |
| 61 | + <i64 as From<&bool>> |
| 62 | + <i64 as From<&i16>> |
| 63 | + <i64 as From<&i32>> |
| 64 | + <i64 as From<&i64>> |
| 65 | + and 12 others |
| 66 | +note: required by `from` |
| 67 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 68 | + | |
| 69 | +LL | fn from(_: T) -> Self; |
| 70 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 71 | + |
| 72 | +error[E0277]: the trait bound `u8: From<&u16>` is not satisfied |
| 73 | + --> $DIR/illegal.rs:11:17 |
| 74 | + | |
| 75 | +LL | let _: u8 = From::from(&1_u16); |
| 76 | + | ^^^^^^^^^^ the trait `From<&u16>` is not implemented for `u8` |
| 77 | + | |
| 78 | + = help: the following implementations were found: |
| 79 | + <u8 as From<&bool>> |
| 80 | + <u8 as From<&u8>> |
| 81 | + <u8 as From<NonZeroU8>> |
| 82 | + <u8 as From<bool>> |
| 83 | +note: required by `from` |
| 84 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 85 | + | |
| 86 | +LL | fn from(_: T) -> Self; |
| 87 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 88 | + |
| 89 | +error[E0277]: the trait bound `u16: From<&u32>` is not satisfied |
| 90 | + --> $DIR/illegal.rs:12:18 |
| 91 | + | |
| 92 | +LL | let _: u16 = From::from(&1_u32); |
| 93 | + | ^^^^^^^^^^ the trait `From<&u32>` is not implemented for `u16` |
| 94 | + | |
| 95 | + = help: the following implementations were found: |
| 96 | + <u16 as From<&bool>> |
| 97 | + <u16 as From<&u16>> |
| 98 | + <u16 as From<&u8>> |
| 99 | + <u16 as From<NonZeroU16>> |
| 100 | + and 2 others |
| 101 | +note: required by `from` |
| 102 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 103 | + | |
| 104 | +LL | fn from(_: T) -> Self; |
| 105 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 106 | + |
| 107 | +error[E0277]: the trait bound `u32: From<&u64>` is not satisfied |
| 108 | + --> $DIR/illegal.rs:13:18 |
| 109 | + | |
| 110 | +LL | let _: u32 = From::from(&1_u64); |
| 111 | + | ^^^^^^^^^^ the trait `From<&u64>` is not implemented for `u32` |
| 112 | + | |
| 113 | + = help: the following implementations were found: |
| 114 | + <u32 as From<&bool>> |
| 115 | + <u32 as From<&u16>> |
| 116 | + <u32 as From<&u32>> |
| 117 | + <u32 as From<&u8>> |
| 118 | + and 6 others |
| 119 | +note: required by `from` |
| 120 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 121 | + | |
| 122 | +LL | fn from(_: T) -> Self; |
| 123 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 124 | + |
| 125 | +error[E0277]: the trait bound `u64: From<&u128>` is not satisfied |
| 126 | + --> $DIR/illegal.rs:14:18 |
| 127 | + | |
| 128 | +LL | let _: u64 = From::from(&1_u128); |
| 129 | + | ^^^^^^^^^^ the trait `From<&u128>` is not implemented for `u64` |
| 130 | + | |
| 131 | + = help: the following implementations were found: |
| 132 | + <u64 as From<&bool>> |
| 133 | + <u64 as From<&u16>> |
| 134 | + <u64 as From<&u32>> |
| 135 | + <u64 as From<&u64>> |
| 136 | + and 7 others |
| 137 | +note: required by `from` |
| 138 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 139 | + | |
| 140 | +LL | fn from(_: T) -> Self; |
| 141 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 142 | + |
| 143 | +error[E0277]: the trait bound `i8: From<&u8>` is not satisfied |
| 144 | + --> $DIR/illegal.rs:17:17 |
| 145 | + | |
| 146 | +LL | let _: i8 = From::from(&1_u8); |
| 147 | + | ^^^^^^^^^^ the trait `From<&u8>` is not implemented for `i8` |
| 148 | + | |
| 149 | + = help: the following implementations were found: |
| 150 | + <i8 as From<&bool>> |
| 151 | + <i8 as From<&i8>> |
| 152 | + <i8 as From<NonZeroI8>> |
| 153 | + <i8 as From<bool>> |
| 154 | +note: required by `from` |
| 155 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 156 | + | |
| 157 | +LL | fn from(_: T) -> Self; |
| 158 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 159 | + |
| 160 | +error[E0277]: the trait bound `u16: From<&i8>` is not satisfied |
| 161 | + --> $DIR/illegal.rs:18:18 |
| 162 | + | |
| 163 | +LL | let _: u16 = From::from(&1_i8); |
| 164 | + | ^^^^^^^^^^ the trait `From<&i8>` is not implemented for `u16` |
| 165 | + | |
| 166 | + = help: the following implementations were found: |
| 167 | + <u16 as From<&bool>> |
| 168 | + <u16 as From<&u16>> |
| 169 | + <u16 as From<&u8>> |
| 170 | + <u16 as From<NonZeroU16>> |
| 171 | + and 2 others |
| 172 | +note: required by `from` |
| 173 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 174 | + | |
| 175 | +LL | fn from(_: T) -> Self; |
| 176 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 177 | + |
| 178 | +error[E0277]: the trait bound `i32: From<&u32>` is not satisfied |
| 179 | + --> $DIR/illegal.rs:19:18 |
| 180 | + | |
| 181 | +LL | let _: i32 = From::from(&1_u32); |
| 182 | + | ^^^^^^^^^^ the trait `From<&u32>` is not implemented for `i32` |
| 183 | + | |
| 184 | + = help: the following implementations were found: |
| 185 | + <i32 as From<&bool>> |
| 186 | + <i32 as From<&i16>> |
| 187 | + <i32 as From<&i32>> |
| 188 | + <i32 as From<&i8>> |
| 189 | + and 8 others |
| 190 | +note: required by `from` |
| 191 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 192 | + | |
| 193 | +LL | fn from(_: T) -> Self; |
| 194 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 195 | + |
| 196 | +error[E0277]: the trait bound `u64: From<&i32>` is not satisfied |
| 197 | + --> $DIR/illegal.rs:20:18 |
| 198 | + | |
| 199 | +LL | let _: u64 = From::from(&1_i32); |
| 200 | + | ^^^^^^^^^^ the trait `From<&i32>` is not implemented for `u64` |
| 201 | + | |
| 202 | + = help: the following implementations were found: |
| 203 | + <u64 as From<&bool>> |
| 204 | + <u64 as From<&u16>> |
| 205 | + <u64 as From<&u32>> |
| 206 | + <u64 as From<&u64>> |
| 207 | + and 7 others |
| 208 | +note: required by `from` |
| 209 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 210 | + | |
| 211 | +LL | fn from(_: T) -> Self; |
| 212 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 213 | + |
| 214 | +error[E0277]: the trait bound `i128: From<&u128>` is not satisfied |
| 215 | + --> $DIR/illegal.rs:21:19 |
| 216 | + | |
| 217 | +LL | let _: i128 = From::from(&1_u128); |
| 218 | + | ^^^^^^^^^^ the trait `From<&u128>` is not implemented for `i128` |
| 219 | + | |
| 220 | + = help: the following implementations were found: |
| 221 | + <i128 as From<&bool>> |
| 222 | + <i128 as From<&i128>> |
| 223 | + <i128 as From<&i16>> |
| 224 | + <i128 as From<&i32>> |
| 225 | + and 16 others |
| 226 | +note: required by `from` |
| 227 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 228 | + | |
| 229 | +LL | fn from(_: T) -> Self; |
| 230 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 231 | + |
| 232 | +error: aborting due to 13 previous errors |
| 233 | + |
| 234 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments