]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-types-bounds.stderr
Rollup merge of #94248 - compiler-errors:fix-while-loop-bad-delay, r=petrochenkov
[rust.git] / src / test / ui / variance / variance-types-bounds.stderr
1 error[E0208]: [+, +]
2   --> $DIR/variance-types-bounds.rs:7:1
3    |
4 LL | / struct TestImm<A, B> {
5 LL | |     x: A,
6 LL | |     y: B,
7 LL | | }
8    | |_^
9
10 error[E0208]: [+, o]
11   --> $DIR/variance-types-bounds.rs:13:1
12    |
13 LL | / struct TestMut<A, B:'static> {
14 LL | |     x: A,
15 LL | |     y: &'static mut B,
16 LL | | }
17    | |_^
18
19 error[E0208]: [+, o]
20   --> $DIR/variance-types-bounds.rs:19:1
21    |
22 LL | / struct TestIndirect<A:'static, B:'static> {
23 LL | |     m: TestMut<A, B>
24 LL | | }
25    | |_^
26
27 error[E0208]: [o, o]
28   --> $DIR/variance-types-bounds.rs:24:1
29    |
30 LL | / struct TestIndirect2<A:'static, B:'static> {
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:38:1
38    |
39 LL | / struct TestObject<A, R> {
40 LL | |     n: Box<dyn Setter<A>+Send>,
41 LL | |     m: Box<dyn Getter<R>+Send>,
42 LL | | }
43    | |_^
44
45 error: aborting due to 5 previous errors
46