fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
720 B21 linesraw
1error[E0277]: the trait bound `u32: Trait` is not satisfied
2  --> $DIR/trait-bounds-on-structs-and-enums-in-fns.rs:13:15
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:14
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`.