2018-08-08 07:28:26 -05:00
|
|
|
error[E0277]: the trait bound `T: Trait` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:13:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl<T> Foo<T> {
|
|
|
|
| ^^^^^^ the trait `Trait` is not implemented for `T`
|
|
|
|
|
|
|
|
|
= help: consider adding a `where T: Trait` bound
|
|
|
|
note: required by `Foo`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:3:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<T:Trait> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `isize: Trait` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:19:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | a: Foo<isize>,
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^ the trait `Trait` is not implemented for `isize`
|
|
|
|
|
|
|
|
|
note: required by `Foo`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:3:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<T:Trait> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `usize: Trait` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:23:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Quux(Bar<usize>),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
|
|
|
|
|
|
|
|
|
note: required by `Bar`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:7:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | enum Bar<T:Trait> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `U: Trait` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:27:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | b: Foo<U>,
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^ the trait `Trait` is not implemented for `U`
|
|
|
|
|
|
|
|
|
= help: consider adding a `where U: Trait` bound
|
|
|
|
note: required by `Foo`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:3:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<T:Trait> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `V: Trait` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:31:21
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | EvenMoreBadness(Bar<V>),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^ the trait `Trait` is not implemented for `V`
|
|
|
|
|
|
|
|
|
= help: consider adding a `where V: Trait` bound
|
|
|
|
note: required by `Bar`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:7:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | enum Bar<T:Trait> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `i32: Trait` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:35:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Foo<i32>,
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^ the trait `Trait` is not implemented for `i32`
|
|
|
|
|
|
|
|
|
note: required by `Foo`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:3:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<T:Trait> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `u8: Trait` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:39:22
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | DictionaryLike { field: Bar<u8> },
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `u8`
|
|
|
|
|
|
|
|
|
note: required by `Bar`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-bounds-on-structs-and-enums.rs:7:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | enum Bar<T:Trait> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|