blob: bea3aea2f3afb1b0807df2cbcfa3786248d5e7d0 [file] [log] [blame] [edit]
error[E0277]: the trait bound `T: ~const Foo` is not satisfied
--> $DIR/super-traits-fail-2.rs:19:7
|
LL | x.a();
| ^ the trait `Foo` is not implemented for `T`
|
note: required by a bound in `Foo::a`
--> $DIR/super-traits-fail-2.rs:6:25
|
LL | #[cfg_attr(any(yy, yn), 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 this bound
|
LL | const fn foo<T: Bar + Foo>(x: &T) {
| +++++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.