Sign in
fuchsia
/
third_party
/
rust
/
fc8765d6d8623b2b5b4ca1d526ed1d7beb3fce18
/
.
/
src
/
test
/
ui
/
feature-gate
/
feature-gate-or_patterns.rs
blob: 036a6095965bdd0c6689284b0db25d832d60d375 [
file
] [
log
] [
blame
]
#![
crate_type
=
"lib"
]
pub
fn
example
(
x
:
Option
<
usize
>)
{
match
x
{
Some
(
0
|
1
|
2
)
=>
{}
//~^ ERROR: or-patterns syntax is experimental
_
=>
{}
}
}