2015-07-08 21:51:47 -05:00
|
|
|
// Check that an enum with recursion in the discriminant throws
|
|
|
|
// the appropriate error (rather than, say, blowing the stack).
|
2015-06-22 21:55:57 -05:00
|
|
|
enum X {
|
2018-02-03 14:15:00 -06:00
|
|
|
A = X::A as isize, //~ ERROR E0391
|
2015-06-22 21:55:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|