Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
error-codes
/
E0026-teach.rs
blob: 7c51004ffe46e41b64c19127a6d67b38ed1dc5a4 [
file
] [
log
] [
blame
]
// compile-flags: -Z teach
struct
Thing
{
x
:
u32
,
y
:
u32
}
fn
main
()
{
let
thing
=
Thing
{
x
:
0
,
y
:
0
};
match
thing
{
Thing
{
x
,
y
,
z
}
=>
{}
//~^ ERROR struct `Thing` does not have a field named `z` [E0026]
}
}