]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/associated-type-bound-fail.stderr
Move generic error message to separate branches
[rust.git] / src / test / 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:5
3    |
4 LL |     type Assoc = u16;
5    |     ^^^^^^^^^^^^^^^^^ the trait `Bar<N>` is not implemented for `u16`
6    |
7    = help: the following implementations were found:
8              <u16 as Bar<3_usize>>
9 note: required by a bound in `Foo::Assoc`
10   --> $DIR/associated-type-bound-fail.rs:4:17
11    |
12 LL |     type Assoc: Bar<N>;
13    |                 ^^^^^^ required by this bound in `Foo::Assoc`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.