summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/assoc-type-const-bound-usage.stderr
blob: 4fcfe9d476932f3500a78cb207a8b452b83c0096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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`.