This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
6c3243f008
rust
/
tests
/
ui
/
half-open-range-patterns
/
pat-tuple-4.rs
11 lines
113 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ check-pass
Introduce `#![feature(half_open_range_patterns)]`. This feature adds `X..`, `..X`, and `..=X` patterns.
2019-12-11 10:04:34 +01:00
fn
main
(
)
{
const
PAT
:
u8
=
1
;
match
0
{
(
..
PAT
)
=
>
{
}
_
=
>
{
}
}
}
Copy permalink