summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/assoc-type-const-bound-usage.stderr
blob: ad11c090f122e52db137e8e2bcfe754feb459dda (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:6
   |
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`.