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-01-06 18:33:05 +03:00
|
|
|
match Foo { //~ ERROR expected value, found struct `Foo`
|
2015-03-31 09:10:11 +03:00
|
|
|
x: 3 //~ ERROR expected one of `=>`, `@`, `if`, or `|`, found `:`
|
2014-06-13 19:09:12 -07:00
|
|
|
} {
|
2019-01-06 18:33:05 +03:00
|
|
|
Foo { //~ ERROR mismatched types
|
|
|
|
x: x //~ ERROR cannot find value `x` in this scope
|
2016-03-07 21:17:31 -05:00
|
|
|
} => {} //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `=>`
|
2014-06-13 19:09:12 -07:00
|
|
|
}
|
|
|
|
}
|