]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-ret.rs
Auto merge of #57129 - RalfJung:check-bounds, r=oli-obk
[rust.git] / src / test / ui / regions / regions-ret.rs
1 fn id<T>(x: T) -> T { x }
2
3 fn f(_x: &isize) -> &isize {
4     return &id(3); //~ ERROR borrowed value does not live long enough
5 }
6
7 fn main() {
8 }