error[E0277]: the trait bound `{integer}: Trait` is not satisfied
--> $DIR/on-structs-and-enums-locals.rs:10:15
|
-LL | struct Foo<T:Trait> {
- | ------------------- required by `Foo`
-...
LL | let foo = Foo {
| ^^^ the trait `Trait` is not implemented for `{integer}`
+ |
+note: required by `Foo`
+ --> $DIR/on-structs-and-enums-locals.rs:5:1
+ |
+LL | struct Foo<T:Trait> {
+ | ^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors