]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/occurs-check/unused-substs-1.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / const-generics / occurs-check / unused-substs-1.stderr
CommitLineData
cdc7bbd5
XL
1error[E0277]: the trait bound `A<{_: usize}>: Bar<{_: usize}>` is not satisfied
2 --> $DIR/unused-substs-1.rs:12:13
3 |
136023e0
XL
4LL | let _ = A;
5 | ^ the trait `Bar<{_: usize}>` is not implemented for `A<{_: usize}>`
cdc7bbd5 6 |
04454e1e 7 = help: the trait `Bar<N>` is implemented for `A<7_usize>`
3c0e092e
XL
8note: required by a bound in `A`
9 --> $DIR/unused-substs-1.rs:9:11
136023e0 10 |
04454e1e
FG
11LL | struct A<const N: usize>
12 | - required by a bound in this
13LL | where
3c0e092e
XL
14LL | A<N>: Bar<N>;
15 | ^^^^^^ required by this bound in `A`
cdc7bbd5
XL
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.