2011-09-12 14:24:12 +02:00
|
|
|
// error-pattern:invalidate reference i
|
2011-06-06 15:22:13 +02:00
|
|
|
|
2012-03-26 18:35:18 -07:00
|
|
|
enum foo { left({mut x: int}), right(bool) }
|
2011-06-06 15:22:13 +02:00
|
|
|
|
|
|
|
fn main() {
|
2012-03-26 18:35:18 -07:00
|
|
|
let x = left({mut x: 10});
|
2011-12-22 17:53:53 -08:00
|
|
|
alt x { left(i) { x = right(false); log(debug, i); } _ { } }
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|