fork/rust

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

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

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