fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.1 KiB25 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  ::: $DIR/auxiliary/trait_bounds_on_structs_and_enums_xc.rs:5:18
8   |
9LL | pub struct Foo<T:Trait> {
10   |                  ----- required by this bound in `trait_bounds_on_structs_and_enums_xc::Foo`
11
12error[E0277]: the trait bound `f32: trait_bounds_on_structs_and_enums_xc::Trait` is not satisfied
13  --> $DIR/trait-bounds-on-structs-and-enums-xc.rs:10:14
14   |
15LL | fn kaboom(y: Bar<f32>) {}
16   |              ^^^^^^^^ the trait `trait_bounds_on_structs_and_enums_xc::Trait` is not implemented for `f32`
17   | 
18  ::: $DIR/auxiliary/trait_bounds_on_structs_and_enums_xc.rs:9:16
19   |
20LL | pub enum Bar<T:Trait> {
21   |                ----- required by this bound in `trait_bounds_on_structs_and_enums_xc::Bar`
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0277`.