Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
pattern
/
enum-variant-not-found.rs
blob: e78e28abeb6e34c6bc1ff7fb1eadc029869475b1 [
file
] [
log
] [
blame
] [
edit
]
//! regression test for <https://github.com/rust-lang/rust/issues/34209>
enum
S
{
A
,
}
fn
bug
(
l
:
S
)
{
match
l
{
S
::
B
{}
=>
{},
//~ ERROR no variant named `B` found for enum `S`
}
}
fn
main
()
{}