This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
2
Packages
Projects
Releases
Wiki
Activity
Files
901b340c1f5d208561d4261cc3ee634973b35326
rust
/
tests
/
ui
/
consts
/
const-eval
/
const_signed_pat.rs
10 lines
117 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
Sign extend constants in range patterns
2018-04-13 18:31:15 +02:00
fn
main
(
)
{
const
MIN
:
i8
=
-
5
;
match
5
i8
{
migrate codebase to `..=` inclusive range patterns These were stabilized in March 2018's #47813, and are the Preferred Way to Do It going forward (q.v. #51043).
2018-05-28 19:42:11 -07:00
MIN
..=
-
1
=
>
{
}
,
Sign extend constants in range patterns
2018-04-13 18:31:15 +02:00
_
=
>
{
}
,
}
}
Reference in New Issue
Copy Permalink