Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
closures
/
malformed-pattern-issue-140011.rs
blob: 18061613e98808d890518cdc42f33af3b87706ac [
file
] [
log
] [
blame
] [
edit
]
//@compile-flags: -Wrust-2021-incompatible-closure-captures
enum
B
{
C
(
D
),
//~ ERROR: cannot find type `D` in this scope
E
(
F
),
}
struct
F
;
fn
f
(
h
:
B
)
{
||
{
let
B
::
E
(
a
)
=
h
;
//~ ERROR: refutable pattern in local binding
};
}
fn
main
()
{}