]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / const-generics / defaults / rp_impl_trait_fail.stderr
CommitLineData
064997fb 1error[E0277]: the trait bound `Uwu<10, 12>: Trait` is not satisfied
a2a8927a 2 --> $DIR/rp_impl_trait_fail.rs:6:14
3c0e092e
XL
3 |
4LL | fn rawr() -> impl Trait {
064997fb 5 | ^^^^^^^^^^ the trait `Trait` is not implemented for `Uwu<10, 12>`
923072b8
FG
6LL |
7LL | Uwu::<10, 12>
064997fb 8 | ------------- return type was inferred to be `Uwu<10, 12>` here
3c0e092e 9 |
04454e1e 10 = help: the trait `Trait` is implemented for `Uwu<N>`
3c0e092e 11
923072b8 12error[E0277]: the trait bound `u32: Traitor<N>` is not satisfied
064997fb 13 --> $DIR/rp_impl_trait_fail.rs:16:26
3c0e092e
XL
14 |
15LL | fn uwu<const N: u8>() -> impl Traitor<N> {
923072b8
FG
16 | ^^^^^^^^^^^^^^^ the trait `Traitor<N>` is not implemented for `u32`
17LL |
18LL | 1_u32
19 | ----- return type was inferred to be `u32` here
3c0e092e 20 |
487cf647 21 = help: the trait `Traitor<N, 2>` is implemented for `u32`
3c0e092e 22
923072b8 23error[E0277]: the trait bound `u64: Traitor` is not satisfied
064997fb 24 --> $DIR/rp_impl_trait_fail.rs:21:13
3c0e092e
XL
25 |
26LL | fn owo() -> impl Traitor {
923072b8
FG
27 | ^^^^^^^^^^^^ the trait `Traitor` is not implemented for `u64`
28LL |
29LL | 1_u64
30 | ----- return type was inferred to be `u64` here
3c0e092e 31 |
487cf647 32 = help: the trait `Traitor<1, 2>` is implemented for `u64`
3c0e092e
XL
33
34error: aborting due to 3 previous errors
35
36For more information about this error, try `rustc --explain E0277`.