|
| 1 | +warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes |
| 2 | + --> $DIR/predicate-entailment-fails.rs:2:30 |
| 3 | + | |
| 4 | +LL | #![feature(const_trait_impl, effects)] |
| 5 | + | ^^^^^^^ |
| 6 | + | |
| 7 | + = note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information |
| 8 | + = note: `#[warn(incomplete_features)]` on by default |
| 9 | + |
| 10 | +error[E0276]: impl has stricter requirements than trait |
| 11 | + --> $DIR/predicate-entailment-fails.rs:15:31 |
| 12 | + | |
| 13 | +LL | type Bar<T> where T: ~const Bar; |
| 14 | + | ----------- definition of `Bar` from trait |
| 15 | +... |
| 16 | +LL | type Bar<T> = () where T: const Bar; |
| 17 | + | ^^^^^^^^^ impl has extra requirement `T: constBar` |
| 18 | + |
| 19 | +error[E0276]: impl has stricter requirements than trait |
| 20 | + --> $DIR/predicate-entailment-fails.rs:18:26 |
| 21 | + | |
| 22 | +LL | fn foo<T>() where T: ~const Bar; |
| 23 | + | -------------------------------- definition of `foo` from trait |
| 24 | +... |
| 25 | +LL | fn foo<T>() where T: const Bar {} |
| 26 | + | ^^^^^^^^^ impl has extra requirement `T: constBar` |
| 27 | + |
| 28 | +error[E0276]: impl has stricter requirements than trait |
| 29 | + --> $DIR/predicate-entailment-fails.rs:29:31 |
| 30 | + | |
| 31 | +LL | type Bar<T> where T: Bar; |
| 32 | + | ----------- definition of `Bar` from trait |
| 33 | +... |
| 34 | +LL | type Bar<T> = () where T: const Bar; |
| 35 | + | ^^^^^^^^^ impl has extra requirement `T: constBar` |
| 36 | + |
| 37 | +error[E0276]: impl has stricter requirements than trait |
| 38 | + --> $DIR/predicate-entailment-fails.rs:32:26 |
| 39 | + | |
| 40 | +LL | fn foo<T>() where T: Bar; |
| 41 | + | ------------------------- definition of `foo` from trait |
| 42 | +... |
| 43 | +LL | fn foo<T>() where T: const Bar {} |
| 44 | + | ^^^^^^^^^ impl has extra requirement `T: constBar` |
| 45 | + |
| 46 | +error[E0276]: impl has stricter requirements than trait |
| 47 | + --> $DIR/predicate-entailment-fails.rs:36:31 |
| 48 | + | |
| 49 | +LL | type Bar<T> where T: Bar; |
| 50 | + | ----------- definition of `Bar` from trait |
| 51 | +... |
| 52 | +LL | type Bar<T> = () where T: ~const Bar; |
| 53 | + | ^^^^^^^^^^ impl has extra requirement `T: ~constBar` |
| 54 | + |
| 55 | +error[E0276]: impl has stricter requirements than trait |
| 56 | + --> $DIR/predicate-entailment-fails.rs:39:26 |
| 57 | + | |
| 58 | +LL | fn foo<T>() where T: Bar; |
| 59 | + | ------------------------- definition of `foo` from trait |
| 60 | +... |
| 61 | +LL | fn foo<T>() where T: ~const Bar {} |
| 62 | + | ^^^^^^^^^^ impl has extra requirement `T: ~constBar` |
| 63 | + |
| 64 | +error: aborting due to 6 previous errors; 1 warning emitted |
| 65 | + |
| 66 | +For more information about this error, try `rustc --explain E0276`. |
0 commit comments