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