mirror of https://github.com/rust-lang/rust
23 lines
806 B
Plaintext
23 lines
806 B
Plaintext
error[E0277]: the trait bound `Foo::{synthetic#0}: ~const Compat` is not satisfied
|
|
--> $DIR/super-traits.rs:23:7
|
|
|
|
|
LL | t.a();
|
|
| ^ the trait `~const Compat` is not implemented for `Foo::{synthetic#0}`
|
|
|
|
|
note: required by a bound in `Foo::a`
|
|
--> $DIR/super-traits.rs:7:1
|
|
|
|
|
LL | #[const_trait]
|
|
| ^^^^^^^^^^^^^^ required by this bound in `Foo::a`
|
|
LL | trait Foo {
|
|
LL | fn a(&self);
|
|
| - required by a bound in this associated function
|
|
help: consider further restricting the associated type
|
|
|
|
|
LL | const fn foo<T: ~const Bar>(t: &T) where Foo::{synthetic#0}: ~const Compat {
|
|
| +++++++++++++++++++++++++++++++++++++++
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|