about summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/unevaluated-const-impl-trait-ref.fails.stderr
blob: efdc9f8fc9f7185e48ecc2d430c459148ca37476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0277]: the trait bound `(): Trait<1>` is not satisfied
  --> $DIR/unevaluated-const-impl-trait-ref.rs:20:13
   |
LL |     needs::<1>();
   |             ^ the trait `Trait<1>` is not implemented for `()`
   |
   = help: the following other types implement trait `Trait<N>`:
             `()` implements `Trait<0>`
             `()` implements `Trait<2>`
note: required by a bound in `needs`
  --> $DIR/unevaluated-const-impl-trait-ref.rs:10:38
   |
LL | fn needs<const N: usize>() where (): Trait<N> {}
   |                                      ^^^^^^^^ required by this bound in `needs`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.