fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
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 `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`.