rust/src/test/ui/issue-36163.stderr

21 lines
530 B
Plaintext
Raw Normal View History

error[E0265]: recursive constant
--> $DIR/issue-36163.rs:11:1
|
11 | const A: i32 = Foo::B; //~ ERROR E0265
| ^^^^^^^^^^^^^^^^^^^^^^ recursion not allowed in constant
error[E0265]: recursive constant
--> $DIR/issue-36163.rs:15:9
|
15 | B = A, //~ ERROR E0265
| ^ recursion not allowed in constant
error[E0265]: recursive constant
--> $DIR/issue-36163.rs:20:9
|
20 | C = Bar::C, //~ ERROR E0265
| ^^^^^^ recursion not allowed in constant
error: aborting due to 3 previous errors