Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
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
}
=>
{}
}
}