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
rust
/
src
/
test
/
run-fail
/
fail-arg.rs
4 lines
74 B
Rust
Raw
Normal View
History
Unescape
Escape
Un-XFAIL fail-arg
2011-07-03 11:56:23 -07:00
// error-pattern:woe
Reformat for new syntax
2011-07-27 14:19:39 +02:00
fn
f
(
a
:
int
)
{
log
a
;
}
Generate code properly for calls with _|_ - typed arguments The code for translating a fail (for example) would call Unreachable(), which terminates the block; if a fail appeared as an argument, this would cause an LLVM assertion failure. Changed trans_call to handle this situation correctly.
2011-07-02 21:55:38 -07:00
Reformat for new syntax
2011-07-27 14:19:39 +02:00
fn
main
(
)
{
f
(
fail
"
woe
"
)
;
}
Reference in New Issue
Copy Permalink