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

9 lines
148 B
Rust

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