summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-local-borrow-outlives-fn.rs
blob: b6eebd4e3256fbc25a6648138ed1fd14ac5bbd2b (plain)
1
2
3
4
5
6
fn cplusplus_mode(x: isize) -> &'static isize {
    &x
    //~^ ERROR cannot return reference to function parameter `x` [E0515]
}

fn main() {}