rust/src/test/compile-fail/regions-ret.rs

10 lines
95 B
Rust
Raw Normal View History

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