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