]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-36163.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-36163.stderr
1 error[E0391]: cycle detected when processing `Foo::B::{{constant}}`
2   --> $DIR/issue-36163.rs:14:9
3    |
4 LL |     B = A, //~ ERROR E0391
5    |         ^
6    |
7 note: ...which requires processing `A`...
8   --> $DIR/issue-36163.rs:11:18
9    |
10 LL | const A: isize = Foo::B as isize;
11    |                  ^^^^^^^^^^^^^^^
12    = note: ...which again requires processing `Foo::B::{{constant}}`, completing the cycle
13 note: cycle used when const-evaluating `Foo::B::{{constant}}`
14   --> $DIR/issue-36163.rs:14:9
15    |
16 LL |     B = A, //~ ERROR E0391
17    |         ^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0391`.