rust/tests/ui/foreign-fn-return-lifetime.rs
2023-01-11 09:32:08 +00:00

9 lines
140 B
Rust

// run-rustfix
extern "C" {
pub fn g(_: &u8) -> &u8; // OK
pub fn f() -> &u8; //~ ERROR missing lifetime specifier
}
fn main() {}