Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
error-codes
/
E0026-teach.rs
blob: 9a6ba2605a78e9a325523ee4a7692775f61ed0d0 [
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]
}
}