/src/test/run-fail/fail-arg.rs

http://github.com/jruderman/rust · Rust · 4 lines · 2 code · 1 blank · 1 comment · 0 complexity · 1f286b7159a9bfa5aed09837c03130ee MD5 · raw file

  1. // error-pattern:woe
  2. fn f(a: int) { log(debug, a); }
  3. fn main() { f(fail ~"woe"); }