fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
877 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:1
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:1
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`.