mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 19:12:50 +00:00
21 lines
661 B
Plaintext
21 lines
661 B
Plaintext
error[E0277]: the trait bound `S: ~const Foo` is not satisfied
|
|
--> $DIR/super-traits-fail.rs:15:12
|
|
|
|
|
LL | impl const Bar for S {}
|
|
| ^^^ the trait `~const Foo` is not implemented for `S`
|
|
|
|
|
note: the trait `Foo` is implemented for `S`, but that implementation is not `const`
|
|
--> $DIR/super-traits-fail.rs:15:12
|
|
|
|
|
LL | impl const Bar for S {}
|
|
| ^^^
|
|
note: required by a bound in `Bar`
|
|
--> $DIR/super-traits-fail.rs:8:12
|
|
|
|
|
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`.
|