]> git.lizzy.rs Git - rust.git/blob - src/test/ui/foreign-fn-return-lifetime.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / ui / foreign-fn-return-lifetime.rs
1 // run-rustfix
2
3 extern "C" {
4     pub fn g(_: &u8) -> &u8; // OK
5     pub fn f() -> &u8; //~ ERROR missing lifetime specifier
6 }
7
8 fn main() {}