|
1 |
| -error[E0512]: transmute called with types of different sizes |
| 1 | +error[E0512]: cannot transmute between types of different sizes, or dependently-sized types |
2 | 2 | --> $DIR/main.rs:16:5
|
3 | 3 | |
|
4 |
| -LL | transmute(x) //~ ERROR transmute called with types of different sizes |
| 4 | +LL | transmute(x) //~ ERROR cannot transmute between types of different sizes |
5 | 5 | | ^^^^^^^^^
|
6 | 6 | |
|
7 |
| - = note: source type: <C as TypeConstructor<'a>>::T (size can vary because of <C as TypeConstructor>::T) |
8 |
| - = note: target type: <C as TypeConstructor<'b>>::T (size can vary because of <C as TypeConstructor>::T) |
| 7 | + = note: source type: `<C as TypeConstructor<'a>>::T` (size can vary because of <C as TypeConstructor>::T) |
| 8 | + = note: target type: `<C as TypeConstructor<'b>>::T` (size can vary because of <C as TypeConstructor>::T) |
9 | 9 |
|
10 |
| -error[E0512]: transmute called with types of different sizes |
| 10 | +error[E0512]: cannot transmute between types of different sizes, or dependently-sized types |
11 | 11 | --> $DIR/main.rs:20:17
|
12 | 12 | |
|
13 |
| -LL | let x: u8 = transmute(10u16); //~ ERROR transmute called with types of different sizes |
| 13 | +LL | let x: u8 = transmute(10u16); //~ ERROR cannot transmute between types of different sizes |
14 | 14 | | ^^^^^^^^^
|
15 | 15 | |
|
16 |
| - = note: source type: u16 (16 bits) |
17 |
| - = note: target type: u8 (8 bits) |
| 16 | + = note: source type: `u16` (16 bits) |
| 17 | + = note: target type: `u8` (8 bits) |
18 | 18 |
|
19 |
| -error[E0512]: transmute called with types of different sizes |
| 19 | +error[E0512]: cannot transmute between types of different sizes, or dependently-sized types |
20 | 20 | --> $DIR/main.rs:24:17
|
21 | 21 | |
|
22 |
| -LL | let x: u8 = transmute("test"); //~ ERROR transmute called with types of different sizes |
| 22 | +LL | let x: u8 = transmute("test"); //~ ERROR cannot transmute between types of different sizes |
23 | 23 | | ^^^^^^^^^
|
24 | 24 | |
|
25 |
| - = note: source type: &str ($STR bits) |
26 |
| - = note: target type: u8 (8 bits) |
| 25 | + = note: source type: `&str` ($STR bits) |
| 26 | + = note: target type: `u8` (8 bits) |
27 | 27 |
|
28 |
| -error[E0512]: transmute called with types of different sizes |
| 28 | +error[E0512]: cannot transmute between types of different sizes, or dependently-sized types |
29 | 29 | --> $DIR/main.rs:29:18
|
30 | 30 | |
|
31 |
| -LL | let x: Foo = transmute(10); //~ ERROR transmute called with types of different sizes |
| 31 | +LL | let x: Foo = transmute(10); //~ ERROR cannot transmute between types of different sizes |
32 | 32 | | ^^^^^^^^^
|
33 | 33 | |
|
34 |
| - = note: source type: i32 (32 bits) |
35 |
| - = note: target type: Foo (0 bits) |
| 34 | + = note: source type: `i32` (32 bits) |
| 35 | + = note: target type: `Foo` (0 bits) |
36 | 36 |
|
37 | 37 | error: aborting due to 4 previous errors
|
38 | 38 |
|
|
0 commit comments