about summary refs log tree commit diff
path: root/tests/ui/transmutability/dont-assume-err-is-yes-issue-126377.stderr
blob: 6cb6a85c78a6b47c5be246fa8aba0b93c941540c (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
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
  --> $DIR/dont-assume-err-is-yes-issue-126377.rs:2:12
   |
LL | #![feature(generic_const_exprs)]
   |            ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
   = note: `#[warn(incomplete_features)]` on by default

error[E0308]: mismatched types
  --> $DIR/dont-assume-err-is-yes-issue-126377.rs:14:23
   |
LL |     is_transmutable::<{}>();
   |                       ^^ expected `bool`, found `()`

error[E0277]: the trait bound `(): TransmuteFrom<(), { Assume::SAFETY }>` is not satisfied
  --> $DIR/dont-assume-err-is-yes-issue-126377.rs:14:23
   |
LL |     is_transmutable::<{}>();
   |                       ^^ the trait `TransmuteFrom<(), { Assume::SAFETY }>` is not implemented for `()`
   |
note: required by a bound in `is_transmutable`
  --> $DIR/dont-assume-err-is-yes-issue-126377.rs:9:9
   |
LL | pub fn is_transmutable<const ASSUME_ALIGNMENT: bool>()
   |        --------------- required by a bound in this function
LL | where
LL |     (): TransmuteFrom<(), { Assume::SAFETY }>,
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`

error: aborting due to 2 previous errors; 1 warning emitted

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.