]>
Commit | Line | Data |
---|---|---|
1 | error[E0277]: the trait bound `Uwu<10, 12>: 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, 12>` | |
6 | LL | | |
7 | LL | Uwu::<10, 12> | |
8 | | ------------- return type was inferred to be `Uwu<10, 12>` here | |
9 | | | |
10 | = help: the trait `Trait` is implemented for `Uwu<N>` | |
11 | ||
12 | error[E0277]: the trait bound `u32: Traitor<N>` is not satisfied | |
13 | --> $DIR/rp_impl_trait_fail.rs:16:26 | |
14 | | | |
15 | LL | fn uwu<const N: u8>() -> impl Traitor<N> { | |
16 | | ^^^^^^^^^^^^^^^ the trait `Traitor<N>` is not implemented for `u32` | |
17 | LL | | |
18 | LL | 1_u32 | |
19 | | ----- return type was inferred to be `u32` here | |
20 | | | |
21 | = help: the trait `Traitor<N, 2>` is implemented for `u32` | |
22 | ||
23 | error[E0277]: the trait bound `u64: Traitor` is not satisfied | |
24 | --> $DIR/rp_impl_trait_fail.rs:21:13 | |
25 | | | |
26 | LL | fn owo() -> impl Traitor { | |
27 | | ^^^^^^^^^^^^ the trait `Traitor` is not implemented for `u64` | |
28 | LL | | |
29 | LL | 1_u64 | |
30 | | ----- return type was inferred to be `u64` here | |
31 | | | |
32 | = help: the trait `Traitor<1, 2>` is implemented for `u64` | |
33 | ||
34 | error: aborting due to 3 previous errors | |
35 | ||
36 | For more information about this error, try `rustc --explain E0277`. |