rust/src/test/ui/issue-23302.stderr
2017-12-14 23:26:39 +03:00

27 lines
724 B
Plaintext

error[E0265]: recursive constant
--> $DIR/issue-23302.rs:14:9
|
14 | A = X::A as isize, //~ ERROR E0265
| ^^^^^^^^^^^^^ recursion not allowed in constant
error[E0265]: recursive constant
--> $DIR/issue-23302.rs:20:9
|
20 | A = Y::B as isize, //~ ERROR E0265
| ^^^^^^^^^^^^^ recursion not allowed in constant
error[E0265]: recursive constant
--> $DIR/issue-23302.rs:24:1
|
24 | const A: i32 = B; //~ ERROR E0265
| ^^^^^^^^^^^^^^^^^ recursion not allowed in constant
error[E0265]: recursive constant
--> $DIR/issue-23302.rs:26:1
|
26 | const B: i32 = A; //~ ERROR E0265
| ^^^^^^^^^^^^^^^^^ recursion not allowed in constant
error: aborting due to 4 previous errors