This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-04-30 12:07:40 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
901b340c1f
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 09:04:34 +00:00
fn
main
(
)
{
const
PAT
:
u8
=
1
;
match
0
{
(
..
PAT
)
=
>
{
}
_
=
>
{
}
}
}
Reference in New Issue
Copy Permalink