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
92725ae765
rust
/
src
/
test
/
run-fail
/
assert-as-macro.rs
6 lines
78 B
Rust
Raw
Normal View
History
Unescape
Escape
libsyntax: Implement `assert` as a macro (called `fail_unless!` on a transitionary basis to avoid conflicting with the keyword right now). r=brson
2013-01-22 18:00:07 -06:00
// error-pattern:assertion failed: 1 == 2
fn
main
(
)
{
librustc: Remove `fail_unless!`
2013-03-28 20:39:09 -05:00
assert!
(
1
=
=
2
)
;
libsyntax: Implement `assert` as a macro (called `fail_unless!` on a transitionary basis to avoid conflicting with the keyword right now). r=brson
2013-01-22 18:00:07 -06:00
}
Reference in New Issue
Copy Permalink