]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bound/on-structs-and-enums-in-fns.stderr
Auto merge of #84959 - camsteffen:lint-suggest-group, r=estebank
[rust.git] / src / test / ui / traits / bound / on-structs-and-enums-in-fns.stderr
1 error[E0277]: the trait bound `u32: Trait` is not satisfied
2   --> $DIR/on-structs-and-enums-in-fns.rs:13:15
3    |
4 LL | struct Foo<T:Trait> {
5    |              ----- required by this bound in `Foo`
6 ...
7 LL | fn explode(x: Foo<u32>) {}
8    |               ^^^^^^^^ the trait `Trait` is not implemented for `u32`
9
10 error[E0277]: the trait bound `f32: Trait` is not satisfied
11   --> $DIR/on-structs-and-enums-in-fns.rs:16:14
12    |
13 LL | enum Bar<T:Trait> {
14    |            ----- required by this bound in `Bar`
15 ...
16 LL | fn kaboom(y: Bar<f32>) {}
17    |              ^^^^^^^^ the trait `Trait` is not implemented for `f32`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0277`.