blob: a46ece7d47ef25ce729cf7c614fd851423c97465 (
plain)
1
2
3
4
5
6
7
|
// Check that the `'_` used in structs/enums gives an error.
use std::fmt::Debug;
fn foo(x: &u32, y: &u32) -> &'_ u32 { loop { } } //~ ERROR missing lifetime specifier
fn main() { }
|