Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
parser
/
struct-literal-in-match-discriminant.rs
blob: ce132df5a888b9fe4fd226232905e951e87f80de [
file
] [
log
] [
blame
]
struct
Foo
{
x
:
isize
,
}
fn
main
()
{
match
Foo
{
//~ ERROR struct literals are not allowed here
x
:
3
}
{
Foo
{
x
:
x
}
=>
{}
}
}