2011-09-12 14:24:12 +02:00
|
|
|
// error-pattern:invalidate reference i
|
2011-06-06 15:22:13 +02:00
|
|
|
|
2011-09-13 12:14:30 +02:00
|
|
|
tag foo { left({mutable x: int}); right(bool); }
|
2011-06-06 15:22:13 +02:00
|
|
|
|
|
|
|
fn main() {
|
2011-09-13 12:14:30 +02:00
|
|
|
let x = left({mutable x: 10});
|
2011-12-22 14:42:52 -08:00
|
|
|
alt x { left(i) { x = right(false); log_full(core::debug, i); } _ { } }
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|