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`. |