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