rust/tests/ui/borrowck/borrowck-local-borrow-outlives-fn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
144 B
Rust
Raw Normal View History

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