2014-06-13 19:09:12 -07:00
|
|
|
struct Foo {
|
2015-01-08 21:54:35 +11:00
|
|
|
x: isize,
|
2014-06-13 19:09:12 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2019-04-14 17:09:03 -07:00
|
|
|
match Foo { //~ ERROR struct literals are not allowed here
|
|
|
|
x: 3
|
2014-06-13 19:09:12 -07:00
|
|
|
} {
|
2019-04-14 17:09:03 -07:00
|
|
|
Foo {
|
|
|
|
x: x
|
|
|
|
} => {}
|
2014-06-13 19:09:12 -07:00
|
|
|
}
|
|
|
|
}
|