]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/in-fn-return-illegal.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / underscore-lifetime / in-fn-return-illegal.rs
1 // Check that the `'_` used in structs/enums gives an error.
2
3 use std::fmt::Debug;
4
5 fn foo(x: &u32, y: &u32) -> &'_ u32 { loop { } } //~ ERROR missing lifetime specifier
6
7 fn main() { }