blob: 03ea1e625f8ca44b240e40b3fb31e4c0170ba030 [file] [log] [blame]
error[E0208]: [-, +]
--> $DIR/variance-associated-types.rs:23:1
|
LL | / struct Foo<'a, T : Trait<'a>> { //~ ERROR [-, +]
LL | | field: (T, &'a ())
LL | | }
| |_^
error[E0208]: [o, o]
--> $DIR/variance-associated-types.rs:28:1
|
LL | / struct Bar<'a, T : Trait<'a>> { //~ ERROR [o, o]
LL | | field: <T as Trait<'a>>::Type
LL | | }
| |_^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0208`.