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