This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
01b5777c8b
rust
/
src
/
test
/
run-pass
/
binary-minus-without-space.rs
7 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
Make 1-1 parse again Issue #954 This is not a very elegant fix -- we should probably do something with constant folding to handle negative-int alt patterns in the future.
2011-10-07 09:22:53 -05:00
// Check that issue #954 stays fixed
fn
main
(
)
{
Rewrite exhaustiveness checker Issue #352 Closes #1720 The old checker would happily accept things like 'alt x { @some(a) { a } }'. It now properly descends into patterns, checks exhaustiveness of booleans, and complains when number/string patterns aren't exhaustive.
2012-02-15 02:40:42 -06:00
alt
check
-
1
{
-
1
{
}
}
Make 1-1 parse again Issue #954 This is not a very elegant fix -- we should probably do something with constant folding to handle negative-int alt patterns in the future.
2011-10-07 09:22:53 -05:00
assert
1
-
1
=
=
0
;
}
Reference in New Issue
Copy Permalink