Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
parser
/
struct-literal-in-match-discriminant.rs
blob: ce132df5a888b9fe4fd226232905e951e87f80de [
file
] [
log
] [
blame
] [
edit
]
struct
Foo
{
x
:
isize
,
}
fn
main
()
{
match
Foo
{
//~ ERROR struct literals are not allowed here
x
:
3
}
{
Foo
{
x
:
x
}
=>
{}
}
}