]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / src / test / ui / const-generics / defaults / rp_impl_trait_fail.stderr
1 error[E0277]: the trait bound `Uwu<10_u32, 12_u32>: Trait` is not satisfied
2   --> $DIR/rp_impl_trait_fail.rs:6:14
3    |
4 LL | fn rawr() -> impl Trait {
5    |              ^^^^^^^^^^ the trait `Trait` is not implemented for `Uwu<10_u32, 12_u32>`
6    |
7    = help: the following implementations were found:
8              <Uwu<N> as Trait>
9
10 error[E0277]: the trait bound `u32: Traitor<N, N>` is not satisfied
11   --> $DIR/rp_impl_trait_fail.rs:17:26
12    |
13 LL | fn uwu<const N: u8>() -> impl Traitor<N> {
14    |                          ^^^^^^^^^^^^^^^ the trait `Traitor<N, N>` is not implemented for `u32`
15    |
16    = help: the following implementations were found:
17              <u32 as Traitor<N, 2_u8>>
18              <u64 as Traitor<1_u8, 2_u8>>
19
20 error[E0277]: the trait bound `u64: Traitor<1_u8, 1_u8>` is not satisfied
21   --> $DIR/rp_impl_trait_fail.rs:22:13
22    |
23 LL | fn owo() -> impl Traitor {
24    |             ^^^^^^^^^^^^ the trait `Traitor<1_u8, 1_u8>` is not implemented for `u64`
25    |
26    = help: the following implementations were found:
27              <u64 as Traitor<1_u8, 2_u8>>
28              <u32 as Traitor<N, 2_u8>>
29
30 error: aborting due to 3 previous errors
31
32 For more information about this error, try `rustc --explain E0277`.