]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23302-3.stderr
0229469f04140e670fe9a0ec689e03809b92a3d7
[rust.git] / src / test / ui / issues / issue-23302-3.stderr
1 error[E0391]: cycle detected when const checking `A`
2   --> $DIR/issue-23302-3.rs:1:16
3    |
4 LL | const A: i32 = B;
5    |                ^
6    |
7 note: ...which requires const checking `B`...
8   --> $DIR/issue-23302-3.rs:3:16
9    |
10 LL | const B: i32 = A;
11    |                ^
12    = note: ...which again requires const checking `A`, completing the cycle
13 note: cycle used when processing `A`
14   --> $DIR/issue-23302-3.rs:1:1
15    |
16 LL | const A: i32 = B;
17    | ^^^^^^^^^^^^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0391`.