2011-05-20 21:53:50 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
// Tests that a function with a ! annotation always actually fails
|
|
|
|
// error-pattern: some control paths may return
|
|
|
|
|
2011-12-22 19:53:53 -06:00
|
|
|
fn bad_bang(i: uint) -> ! { log(debug, 3); }
|
2011-05-20 21:53:50 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { bad_bang(5u); }
|