2022-07-18 18:25:14 -05:00
|
|
|
error[E0277]: the trait bound `Uwu<10, 12>: Trait` is not satisfied
|
2022-02-16 09:48:46 -06:00
|
|
|
--> $DIR/rp_impl_trait_fail.rs:6:14
|
2021-10-20 17:18:26 -05:00
|
|
|
|
|
2022-02-16 09:48:46 -06:00
|
|
|
LL | fn rawr() -> impl Trait {
|
2022-07-18 18:25:14 -05:00
|
|
|
| ^^^^^^^^^^ the trait `Trait` is not implemented for `Uwu<10, 12>`
|
2022-06-07 01:20:13 -05:00
|
|
|
LL |
|
|
|
|
LL | Uwu::<10, 12>
|
2022-07-18 18:25:14 -05:00
|
|
|
| ------------- return type was inferred to be `Uwu<10, 12>` here
|
2021-10-20 17:18:26 -05:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `Trait` is implemented for `Uwu<N>`
|
2021-10-20 17:18:26 -05:00
|
|
|
|
2022-06-03 13:00:39 -05:00
|
|
|
error[E0277]: the trait bound `u32: Traitor<N>` is not satisfied
|
2022-07-18 18:25:14 -05:00
|
|
|
--> $DIR/rp_impl_trait_fail.rs:16:26
|
2022-02-16 09:48:46 -06:00
|
|
|
|
|
|
|
|
LL | fn uwu<const N: u8>() -> impl Traitor<N> {
|
2022-06-03 13:00:39 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ the trait `Traitor<N>` is not implemented for `u32`
|
2022-06-07 01:20:13 -05:00
|
|
|
LL |
|
|
|
|
LL | 1_u32
|
|
|
|
| ----- return type was inferred to be `u32` here
|
2022-02-16 09:48:46 -06:00
|
|
|
|
|
2022-12-05 16:24:48 -06:00
|
|
|
= help: the trait `Traitor<N, 2>` is implemented for `u32`
|
2022-02-16 09:48:46 -06:00
|
|
|
|
2022-06-03 13:00:39 -05:00
|
|
|
error[E0277]: the trait bound `u64: Traitor` is not satisfied
|
2022-07-18 18:25:14 -05:00
|
|
|
--> $DIR/rp_impl_trait_fail.rs:21:13
|
2022-02-16 09:48:46 -06:00
|
|
|
|
|
|
|
|
LL | fn owo() -> impl Traitor {
|
2022-06-03 13:00:39 -05:00
|
|
|
| ^^^^^^^^^^^^ the trait `Traitor` is not implemented for `u64`
|
2022-06-07 01:20:13 -05:00
|
|
|
LL |
|
|
|
|
LL | 1_u64
|
|
|
|
| ----- return type was inferred to be `u64` here
|
2022-02-16 09:48:46 -06:00
|
|
|
|
|
2022-12-05 16:24:48 -06:00
|
|
|
= help: the trait `Traitor<1, 2>` is implemented for `u64`
|
2022-02-16 09:48:46 -06:00
|
|
|
|
2022-04-28 08:25:36 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2021-10-20 17:18:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|