]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/defaults-cyclic-fail-2.stderr
Auto merge of #74328 - yoshuawuyts:stabilize-future-readiness-fns, r=sfackler
[rust.git] / src / test / ui / associated-types / defaults-cyclic-fail-2.stderr
1 error[E0271]: type mismatch resolving `<() as Tr>::B == _`
2   --> $DIR/defaults-cyclic-fail-2.rs:12:6
3    |
4 LL | impl Tr for () {}
5    |      ^^ cyclic type of infinite size
6
7 error[E0271]: type mismatch resolving `<bool as Tr>::B == _`
8   --> $DIR/defaults-cyclic-fail-2.rs:30:6
9    |
10 LL | impl Tr for bool {
11    |      ^^ cyclic type of infinite size
12
13 error[E0271]: type mismatch resolving `<usize as Tr>::B == _`
14   --> $DIR/defaults-cyclic-fail-2.rs:37:6
15    |
16 LL | impl Tr for usize {
17    |      ^^ cyclic type of infinite size
18
19 error[E0271]: type mismatch resolving `<bool as Tr>::B == _`
20   --> $DIR/defaults-cyclic-fail-2.rs:32:5
21    |
22 LL |     type A = Box<Self::B>;
23    |     ^^^^^^^^^^^^^^^^^^^^^^ cyclic type of infinite size
24
25 error[E0271]: type mismatch resolving `<usize as Tr>::A == _`
26   --> $DIR/defaults-cyclic-fail-2.rs:39:5
27    |
28 LL |     type B = &'static Self::A;
29    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ cyclic type of infinite size
30
31 error: aborting due to 5 previous errors
32
33 For more information about this error, try `rustc --explain E0271`.