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