2022-01-28 08:49:15 -06:00
|
|
|
error[E0277]: the trait bound `S: ~const Foo` is not satisfied
|
2023-01-12 14:15:00 -06:00
|
|
|
--> $DIR/super-traits-fail.rs:15:20
|
2022-01-28 08:49:15 -06:00
|
|
|
|
|
|
|
|
LL | impl const Bar for S {}
|
2023-01-12 14:15:00 -06:00
|
|
|
| ^ the trait `~const Foo` is not implemented for `S`
|
2022-01-28 08:49:15 -06:00
|
|
|
|
|
|
|
|
note: the trait `Foo` is implemented for `S`, but that implementation is not `const`
|
2023-01-12 14:15:00 -06:00
|
|
|
--> $DIR/super-traits-fail.rs:15:20
|
2022-01-28 08:49:15 -06:00
|
|
|
|
|
|
|
|
LL | impl const Bar for S {}
|
2023-01-12 14:15:00 -06:00
|
|
|
| ^
|
2022-01-28 08:49:15 -06:00
|
|
|
note: required by a bound in `Bar`
|
2022-08-28 01:27:31 -05:00
|
|
|
--> $DIR/super-traits-fail.rs:8:12
|
2022-01-28 08:49:15 -06:00
|
|
|
|
|
|
|
|
LL | trait Bar: ~const Foo {}
|
|
|
|
| ^^^^^^^^^^ required by this bound in `Bar`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|