]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23302-3.stderr
Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup
[rust.git] / src / test / ui / issues / issue-23302-3.stderr
1 error[E0391]: cycle detected when simplifying constant for the type system `A`
2   --> $DIR/issue-23302-3.rs:1:1
3    |
4 LL | const A: i32 = B;
5    | ^^^^^^^^^^^^^^^^^
6    |
7 note: ...which requires simplifying constant for the type system `A`...
8   --> $DIR/issue-23302-3.rs:1:1
9    |
10 LL | const A: i32 = B;
11    | ^^^^^^^^^^^^^^^^^
12 note: ...which requires const-evaluating + checking `A`...
13   --> $DIR/issue-23302-3.rs:1:1
14    |
15 LL | const A: i32 = B;
16    | ^^^^^^^^^^^^^^^^^
17    = note: ...which requires normalizing `B`...
18 note: ...which requires simplifying constant for the type system `B`...
19   --> $DIR/issue-23302-3.rs:3:1
20    |
21 LL | const B: i32 = A;
22    | ^^^^^^^^^^^^^^^^^
23 note: ...which requires simplifying constant for the type system `B`...
24   --> $DIR/issue-23302-3.rs:3:1
25    |
26 LL | const B: i32 = A;
27    | ^^^^^^^^^^^^^^^^^
28 note: ...which requires const-evaluating + checking `B`...
29   --> $DIR/issue-23302-3.rs:3:1
30    |
31 LL | const B: i32 = A;
32    | ^^^^^^^^^^^^^^^^^
33    = note: ...which requires normalizing `A`...
34    = note: ...which again requires simplifying constant for the type system `A`, completing the cycle
35    = note: cycle used when running analysis passes on this crate
36
37 error: aborting due to previous error
38
39 For more information about this error, try `rustc --explain E0391`.