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
764de078e7
rust
/
src
/
test
/
run-pass
/
operator-associativity.rs
5 lines
101 B
Rust
Raw
Normal View
History
Unescape
Escape
Fix pexp parser to do left-associativity, not right. Closes #130.
2010-08-04 15:44:09 -05:00
// Testcase for issue #130, operator associativity.
fn
main
(
)
->
(
)
{
Use different syntax for checks that matter to typestate This giant commit changes the syntax of Rust to use "assert" for "check" expressions that didn't mean anything to the typestate system, and continue using "check" for checks that are used as part of typestate checking. Most of the changes are just replacing "check" with "assert" in test cases and rustc.
2011-05-02 13:23:07 -05:00
assert
(
(
3
*
5
/
2
)
=
=
7
)
;
Fix pexp parser to do left-associativity, not right. Closes #130.
2010-08-04 15:44:09 -05:00
}
Reference in New Issue
Copy Permalink