]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/exhaustive-value.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / exhaustive-value.stderr
1 error[E0277]: the trait bound `(): Foo<N>` is not satisfied
2   --> $DIR/exhaustive-value.rs:262:5
3    |
4 LL |     <() as Foo<N>>::test()
5    |     ^^^^^^^^^^^^^^^^^^^^ the trait `Foo<N>` is not implemented for `()`
6    |
7    = help: the following implementations were found:
8              <() as Foo<0_u8>>
9              <() as Foo<100_u8>>
10              <() as Foo<101_u8>>
11              <() as Foo<102_u8>>
12            and 252 others
13 note: required by `Foo::test`
14   --> $DIR/exhaustive-value.rs:2:5
15    |
16 LL |     fn test() {}
17    |     ^^^^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.