rust/tests/ui/borrowck/borrowck-local-borrow-outlives-fn.rs
2023-01-11 09:32:08 +00:00

7 lines
144 B
Rust

fn cplusplus_mode(x: isize) -> &'static isize {
&x
//~^ ERROR cannot return reference to function parameter `x` [E0515]
}
fn main() {}