blob: bed89c7dc09875b2e8576305c51249541b9478b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Check that the `'_` used in structs/enums gives an error.
use std::fmt::Debug;
struct Foo {
x: &'_ u32, //~ ERROR missing lifetime specifier
}
enum Bar {
Variant(&'_ u32), //~ ERROR missing lifetime specifier
}
fn main() { }
|