rust/src/test/compile-fail/regions-ret.rs
2012-03-24 19:00:08 -07:00

10 lines
95 B
Rust

// error-pattern: mismatched types
fn f(x : &a.int) -> &a.int {
ret &3;
}
fn main() {
}