rust/src/test/ui/traits/trait-bounds-on-structs-and-enums-locals.stderr
2019-08-31 00:14:23 -07:00

22 lines
740 B
Plaintext

error[E0277]: the trait bound `usize: Trait` is not satisfied
--> $DIR/trait-bounds-on-structs-and-enums-locals.rs:15:14
|
LL | struct Foo<T:Trait> {
| ------------------- required by `Foo`
...
LL | let baz: Foo<usize> = loop { };
| ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
error[E0277]: the trait bound `{integer}: Trait` is not satisfied
--> $DIR/trait-bounds-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}`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.