]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/defaults-cyclic-fail-2.stderr
Separate bounds and predicates for associated/opaque types
[rust.git] / src / test / ui / associated-types / defaults-cyclic-fail-2.stderr
1 error[E0275]: overflow evaluating the requirement `<bool as Tr>::B`
2   --> $DIR/defaults-cyclic-fail-2.rs:27:5
3    |
4 LL |     type A = Box<Self::B>;
5    |     ^^^^^^^^^^^^^^^^^^^^^^ cyclic type of infinite size
6
7 error[E0275]: overflow evaluating the requirement `<usize as Tr>::A`
8   --> $DIR/defaults-cyclic-fail-2.rs:33:5
9    |
10 LL |     type B = &'static Self::A;
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ cyclic type of infinite size
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0271`.