]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23302-1.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-23302-1.stderr
1 error[E0391]: cycle detected when simplifying constant for the type system `X::A::{constant#0}`
2   --> $DIR/issue-23302-1.rs:4:9
3    |
4 LL |     A = X::A as isize,
5    |         ^^^^^^^^^^^^^
6    |
7 note: ...which requires simplifying constant for the type system `X::A::{constant#0}`...
8   --> $DIR/issue-23302-1.rs:4:9
9    |
10 LL |     A = X::A as isize,
11    |         ^^^^^^^^^^^^^
12 note: ...which requires const-evaluating + checking `X::A::{constant#0}`...
13   --> $DIR/issue-23302-1.rs:4:9
14    |
15 LL |     A = X::A as isize,
16    |         ^^^^^^^^^^^^^
17    = note: ...which requires normalizing `X::A as isize`...
18    = note: ...which again requires simplifying constant for the type system `X::A::{constant#0}`, completing the cycle
19 note: cycle used when collecting item types in top-level module
20   --> $DIR/issue-23302-1.rs:3:1
21    |
22 LL | enum X {
23    | ^^^^^^
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0391`.