summaryrefslogtreecommitdiffstats
path: root/src/test/ui/variance/variance-types.stderr
blob: 8358b18b73ce202ad3690a262d03f4f66ed0605e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
error[E0208]: [-, o, o]
  --> $DIR/variance-types.rs:10:1
   |
LL | struct InvariantMut<'a,A:'a,B:'a> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0208]: [o]
  --> $DIR/variance-types.rs:15:1
   |
LL | struct InvariantCell<A> {
   | ^^^^^^^^^^^^^^^^^^^^^^^

error[E0208]: [o]
  --> $DIR/variance-types.rs:20:1
   |
LL | struct InvariantIndirect<A> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0208]: [+]
  --> $DIR/variance-types.rs:25:1
   |
LL | struct Covariant<A> {
   | ^^^^^^^^^^^^^^^^^^^

error[E0208]: [-]
  --> $DIR/variance-types.rs:30:1
   |
LL | struct Contravariant<A> {
   | ^^^^^^^^^^^^^^^^^^^^^^^

error[E0208]: [+, -, o]
  --> $DIR/variance-types.rs:35:1
   |
LL | enum Enum<A,B,C> {
   | ^^^^^^^^^^^^^^^^

error: aborting due to 6 previous errors