]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/occurs-check/unused-substs-1.stderr
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / const-generics / occurs-check / unused-substs-1.stderr
1 error[E0277]: the trait bound `A<_>: Bar<_>` is not satisfied
2   --> $DIR/unused-substs-1.rs:12:13
3    |
4 LL |     let _ = A;
5    |             ^ the trait `Bar<_>` is not implemented for `A<_>`
6    |
7    = help: the trait `Bar<N>` is implemented for `A<7>`
8 note: required by a bound in `A`
9   --> $DIR/unused-substs-1.rs:9:11
10    |
11 LL | struct A<const N: usize>
12    |        - required by a bound in this
13 LL | where
14 LL |     A<N>: Bar<N>;
15    |           ^^^^^^ required by this bound in `A`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.