2015-07-08 20:51:47 -06:00
|
|
|
// Since `Y::B` here defaults to `Y::A+1`, this is also a
|
|
|
|
// recursive definition.
|
2015-06-22 20:55:57 -06:00
|
|
|
enum Y {
|
2018-02-03 21:15:00 +01:00
|
|
|
A = Y::B as isize, //~ ERROR E0391
|
2015-06-22 20:55:57 -06:00
|
|
|
B,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|