/src/test/compile-fail/bad-bang-ann-3.rs
http://github.com/jruderman/rust · Rust · 9 lines · 4 code · 2 blank · 3 comment · 0 complexity · 772eeedab8809074fb1c6a2632fc1130 MD5 · raw file
- // -*- rust -*-
- // Tests that a function with a ! annotation always actually fails
- fn bad_bang(i: uint) -> ! {
- return 7u;
- //~^ ERROR expected `_|_` but found `uint`
- }
- fn main() { bad_bang(5u); }