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
1
Packages
Projects
Releases
Wiki
Activity
Files
55b6f649024b372af901b3412a6d36c4284ccf3d
rust
/
tests
/
ui
/
consts
/
const-eval
/
const_signed_pat.rs
10 lines
116 B
Rust
Raw
Normal View
History
Unescape
Escape
Move some const-eval `build-pass` tests to `check-pass`
2020-03-12 16:58:34 +01: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