summary refs log tree commit diff
path: root/src/test/compile-fail/regions-ret.rs
blob: cf31a308e775e60132a01aa59a2131c393f5c910 (plain)
1
2
3
4
5
6
7
8
9
// error-pattern: mismatched types

fn f(x : &a.int) -> &a.int {
    ret &3;
}

fn main() {
}