2011-08-01 08:46:17 -05:00
|
|
|
// error-pattern:refutable pattern
|
|
|
|
|
2012-01-19 20:31:08 -06:00
|
|
|
enum xx { xx(int), yy, }
|
2011-08-01 08:46:17 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-08-19 17:16:48 -05:00
|
|
|
let @{x: xx(x), y: y} = @{x: xx(10), y: 20};
|
|
|
|
assert (x + y == 30);
|
2011-08-01 08:46:17 -05:00
|
|
|
}
|