blob: 4fcfe9d476932f3500a78cb207a8b452b83c0096 [file] [log] [blame]
error[E0277]: the trait bound `T: Foo` is not satisfied
--> $DIR/assoc-type-const-bound-usage.rs:12:5
|
LL | <T as Foo>::Assoc::foo();
| ^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `T`
|
help: consider further restricting this bound
|
LL | const fn foo<T: ~const Foo + Foo>() {
| +++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.