fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB39 linesraw
1error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2  --> $DIR/transmute-fat-pointers.rs:10:14
3   |
4LL |     unsafe { transmute(x) }
5   |              ^^^^^^^^^
6   |
7   = note: source type: `&[T]` (N bits)
8   = note: target type: `&U` (pointer to `U`)
9
10error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
11  --> $DIR/transmute-fat-pointers.rs:14:14
12   |
13LL |     unsafe { transmute(x) }
14   |              ^^^^^^^^^
15   |
16   = note: source type: `&T` (pointer to `T`)
17   = note: target type: `&U` (pointer to `U`)
18
19error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
20  --> $DIR/transmute-fat-pointers.rs:26:14
21   |
22LL |     unsafe { transmute(x) }
23   |              ^^^^^^^^^
24   |
25   = note: source type: `&T` (pointer to `T`)
26   = note: target type: `&U` (N bits)
27
28error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29  --> $DIR/transmute-fat-pointers.rs:30:14
30   |
31LL |     unsafe { transmute(x) }
32   |              ^^^^^^^^^
33   |
34   = note: source type: `&T` (N bits)
35   = note: target type: `&U` (pointer to `U`)
36
37error: aborting due to 4 previous errors
38
39For more information about this error, try `rustc --explain E0512`.