1 error[E0208]: [-, o, o]
2 --> $DIR/variance-types.rs:20:1
4 LL | / struct InvariantMut<'a,A:'a,B:'a> { //~ ERROR [-, o, o]
5 LL | | t: &'a mut (A,B)
10 --> $DIR/variance-types.rs:25:1
12 LL | / struct InvariantCell<A> { //~ ERROR [o]
18 --> $DIR/variance-types.rs:30:1
20 LL | / struct InvariantIndirect<A> { //~ ERROR [o]
21 LL | | t: InvariantCell<A>
26 --> $DIR/variance-types.rs:35:1
28 LL | / struct Covariant<A> { //~ ERROR [+]
29 LL | | t: A, u: fn() -> A
34 --> $DIR/variance-types.rs:40:1
36 LL | / struct Contravariant<A> { //~ ERROR [-]
41 error[E0208]: [+, -, o]
42 --> $DIR/variance-types.rs:45:1
44 LL | / enum Enum<A,B,C> { //~ ERROR [+, -, o]
45 LL | | Foo(Covariant<A>),
46 LL | | Bar(Contravariant<B>),
47 LL | | Zed(Covariant<C>,Contravariant<C>)
51 error: aborting due to 6 previous errors
53 For more information about this error, try `rustc --explain E0208`.