]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/associated-type-bound-fail.stderr
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / const-generics / associated-type-bound-fail.stderr
1 error[E0277]: the trait bound `u16: Bar<N>` is not satisfied
2   --> $DIR/associated-type-bound-fail.rs:9:18
3    |
4 LL |     type Assoc = u16;
5    |                  ^^^ the trait `Bar<N>` is not implemented for `u16`
6    |
7    = help: the trait `Bar<3>` is implemented for `u16`
8 note: required by a bound in `Foo::Assoc`
9   --> $DIR/associated-type-bound-fail.rs:4:17
10    |
11 LL |     type Assoc: Bar<N>;
12    |                 ^^^^^^ required by this bound in `Foo::Assoc`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.