about summary refs log tree commit diff
path: root/tests/ui/transmutability/char.stderr
blob: 98e7ae9c0d49cd2ef4af959f46b4aa266b22c736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
error[E0277]: `main::Char<(), !, !>` cannot be safely transmuted into `char`
  --> $DIR/char.rs:35:39
   |
LL |     is_transmutable::<Char<(), !, !>, char>();
   |                                       ^^^^ at least one value of `main::Char<(), !, !>` isn't a bit-valid value of `char`
   |
note: required by a bound in `is_transmutable`
  --> $DIR/char.rs:8:10
   |
LL | pub fn is_transmutable<Src, Dst>()
   |        --------------- required by a bound in this function
LL | where
LL |     Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`

error[E0277]: `main::Char<!, (), !>` cannot be safely transmuted into `char`
  --> $DIR/char.rs:37:39
   |
LL |     is_transmutable::<Char<!, (), !>, char>();
   |                                       ^^^^ at least one value of `main::Char<!, (), !>` isn't a bit-valid value of `char`
   |
note: required by a bound in `is_transmutable`
  --> $DIR/char.rs:8:10
   |
LL | pub fn is_transmutable<Src, Dst>()
   |        --------------- required by a bound in this function
LL | where
LL |     Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`

error[E0277]: `main::Char<!, !, ()>` cannot be safely transmuted into `char`
  --> $DIR/char.rs:39:39
   |
LL |     is_transmutable::<Char<!, !, ()>, char>();
   |                                       ^^^^ at least one value of `main::Char<!, !, ()>` isn't a bit-valid value of `char`
   |
note: required by a bound in `is_transmutable`
  --> $DIR/char.rs:8:10
   |
LL | pub fn is_transmutable<Src, Dst>()
   |        --------------- required by a bound in this function
LL | where
LL |     Dst: TransmuteFrom<Src, { Assume::SAFETY }>,
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0277`.