]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-types-bounds.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / variance / variance-types-bounds.stderr
1 error[E0208]: [+, +]
2   --> $DIR/variance-types-bounds.rs:17:1
3    |
4 LL | / struct TestImm<A, B> { //~ ERROR [+, +]
5 LL | |     x: A,
6 LL | |     y: B,
7 LL | | }
8    | |_^
9
10 error[E0208]: [+, o]
11   --> $DIR/variance-types-bounds.rs:23:1
12    |
13 LL | / struct TestMut<A, B:'static> { //~ ERROR [+, o]
14 LL | |     x: A,
15 LL | |     y: &'static mut B,
16 LL | | }
17    | |_^
18
19 error[E0208]: [+, o]
20   --> $DIR/variance-types-bounds.rs:29:1
21    |
22 LL | / struct TestIndirect<A:'static, B:'static> { //~ ERROR [+, o]
23 LL | |     m: TestMut<A, B>
24 LL | | }
25    | |_^
26
27 error[E0208]: [o, o]
28   --> $DIR/variance-types-bounds.rs:34:1
29    |
30 LL | / struct TestIndirect2<A:'static, B:'static> { //~ ERROR [o, o]
31 LL | |     n: TestMut<A, B>,
32 LL | |     m: TestMut<B, A>
33 LL | | }
34    | |_^
35
36 error[E0208]: [o, o]
37   --> $DIR/variance-types-bounds.rs:48:1
38    |
39 LL | / struct TestObject<A, R> { //~ ERROR [o, o]
40 LL | |     n: Box<Setter<A>+Send>,
41 LL | |     m: Box<Getter<R>+Send>,
42 LL | | }
43    | |_^
44
45 error: aborting due to 5 previous errors
46
47 For more information about this error, try `rustc --explain E0208`.