Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
structs
/
struct-pat-derived-error.rs
blob: f49a8ff8bdda6bbe7e7f0da7b0326fd440521940 [
file
] [
log
] [
blame
]
struct
A
{
b
:
usize
,
c
:
usize
}
impl
A
{
fn
foo
(&
self
)
{
let
A
{
x
,
y
}
=
self
.
d
;
//~ ERROR no field `d` on type `&A`
//~^ ERROR struct `A` does not have fields named `x`, `y`
//~| ERROR pattern does not mention fields `b`, `c`
}
}
fn
main
()
{}