rust/src/test/compile-fail/regions-ret.rs
2012-07-13 10:20:50 -07:00

10 lines
95 B
Rust

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