fork/rust

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

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

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