]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-36163.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / consts / issue-36163.stderr
1 error[E0391]: cycle detected when const-evaluating + checking `Foo::B::{constant#0}`
2   --> $DIR/issue-36163.rs:4:9
3    |
4 LL |     B = A,
5    |         ^
6    |
7 note: ...which requires const-evaluating + checking `A`...
8   --> $DIR/issue-36163.rs:1:18
9    |
10 LL | const A: isize = Foo::B as isize;
11    |                  ^^^^^^^^^^^^^^^
12    = note: ...which again requires const-evaluating + checking `Foo::B::{constant#0}`, completing the cycle
13 note: cycle used when simplifying constant for the type system `Foo::B::{constant#0}`
14   --> $DIR/issue-36163.rs:4:9
15    |
16 LL |     B = A,
17    |         ^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0391`.