]> git.lizzy.rs Git - rust.git/blob - tests/ui/foreign-fn-return-lifetime.fixed
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / foreign-fn-return-lifetime.fixed
1 // run-rustfix
2
3 extern "C" {
4     pub fn g(_: &u8) -> &u8; // OK
5     pub fn f() -> &'static u8; //~ ERROR missing lifetime specifier
6 }
7
8 fn main() {}