fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
726 B21 linesraw
1error[E0277]: the trait bound `u32: Trait` is not satisfied
2  --> $DIR/trait-bounds-on-structs-and-enums-in-fns.rs:13:1
3   |
4LL | struct Foo<T:Trait> {
5   | ------------------- required by `Foo`
6...
7LL | fn explode(x: Foo<u32>) {}
8   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `u32`
9
10error[E0277]: the trait bound `f32: Trait` is not satisfied
11  --> $DIR/trait-bounds-on-structs-and-enums-in-fns.rs:16:1
12   |
13LL | enum Bar<T:Trait> {
14   | ----------------- required by `Bar`
15...
16LL | fn kaboom(y: Bar<f32>) {}
17   | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `f32`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0277`.