2024-10-21 15:16:33 -05:00
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2024-10-30 13:03:44 -05:00
|
|
|
--> $DIR/predicate-entailment-fails.rs:14:31
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
|
LL | type Bar<T> where T: ~const Bar;
|
|
|
|
| ----------- definition of `Bar` from trait
|
|
|
|
...
|
|
|
|
LL | type Bar<T> = () where T: const Bar;
|
2024-10-26 15:54:38 -05:00
|
|
|
| ^^^^^ impl has extra requirement `T: const Bar`
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2024-10-30 13:03:44 -05:00
|
|
|
--> $DIR/predicate-entailment-fails.rs:17:26
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<T>() where T: ~const Bar;
|
|
|
|
| -------------------------------- definition of `foo` from trait
|
|
|
|
...
|
|
|
|
LL | fn foo<T>() where T: const Bar {}
|
2024-10-26 15:54:38 -05:00
|
|
|
| ^^^^^ impl has extra requirement `T: const Bar`
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2024-10-30 13:03:44 -05:00
|
|
|
--> $DIR/predicate-entailment-fails.rs:28:31
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
|
LL | type Bar<T> where T: Bar;
|
|
|
|
| ----------- definition of `Bar` from trait
|
|
|
|
...
|
|
|
|
LL | type Bar<T> = () where T: const Bar;
|
2024-10-26 15:54:38 -05:00
|
|
|
| ^^^^^ impl has extra requirement `T: const Bar`
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2024-10-30 13:03:44 -05:00
|
|
|
--> $DIR/predicate-entailment-fails.rs:31:26
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<T>() where T: Bar;
|
|
|
|
| ------------------------- definition of `foo` from trait
|
|
|
|
...
|
|
|
|
LL | fn foo<T>() where T: const Bar {}
|
2024-10-26 15:54:38 -05:00
|
|
|
| ^^^^^ impl has extra requirement `T: const Bar`
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2024-10-30 13:03:44 -05:00
|
|
|
--> $DIR/predicate-entailment-fails.rs:35:31
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
|
LL | type Bar<T> where T: Bar;
|
|
|
|
| ----------- definition of `Bar` from trait
|
|
|
|
...
|
|
|
|
LL | type Bar<T> = () where T: ~const Bar;
|
2024-10-26 15:54:38 -05:00
|
|
|
| ^^^^^^ impl has extra requirement `T: ~const Bar`
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2024-10-30 13:03:44 -05:00
|
|
|
--> $DIR/predicate-entailment-fails.rs:38:26
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<T>() where T: Bar;
|
|
|
|
| ------------------------- definition of `foo` from trait
|
|
|
|
...
|
|
|
|
LL | fn foo<T>() where T: ~const Bar {}
|
2024-10-26 15:54:38 -05:00
|
|
|
| ^^^^^^ impl has extra requirement `T: ~const Bar`
|
2024-10-21 15:16:33 -05:00
|
|
|
|
2024-10-30 13:03:44 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0276`.
|