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