fork/rust

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

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

1.44.0
1001 B22 linesraw
1error[E0277]: the trait bound `f64: trait_bounds_on_structs_and_enums_xc::Trait` is not satisfied
2  --> $DIR/trait-bounds-on-structs-and-enums-xc1.rs:12:14
3   |
4LL |     let bar: Bar<f64> = return;
5   |              ^^^^^^^^ the trait `trait_bounds_on_structs_and_enums_xc::Trait` is not implemented for `f64`
6   | 
7  ::: $DIR/auxiliary/trait_bounds_on_structs_and_enums_xc.rs:9:16
8   |
9LL | pub enum Bar<T:Trait> {
10   |                ----- required by this bound in `trait_bounds_on_structs_and_enums_xc::Bar`
11
12error[E0277]: the trait bound `{integer}: trait_bounds_on_structs_and_enums_xc::Trait` is not satisfied
13  --> $DIR/trait-bounds-on-structs-and-enums-xc1.rs:8:15
14   |
15LL |     let foo = Foo {
16   |               ^^^ the trait `trait_bounds_on_structs_and_enums_xc::Trait` is not implemented for `{integer}`
17   |
18   = note: required by `trait_bounds_on_structs_and_enums_xc::Foo`
19
20error: aborting due to 2 previous errors
21
22For more information about this error, try `rustc --explain E0277`.