2018-10-11 14:51:44 -05:00
|
|
|
// Check that the `'_` used in structs/enums gives an error.
|
|
|
|
|
|
|
|
use std::fmt::Debug;
|
|
|
|
|
|
|
|
struct Foo {
|
2018-10-19 15:43:46 -05:00
|
|
|
x: &'_ u32, //~ ERROR missing lifetime specifier
|
2018-10-11 14:51:44 -05:00
|
|
|
}
|
|
|
|
|
2018-10-19 15:39:41 -05:00
|
|
|
enum Bar {
|
2018-10-19 15:43:46 -05:00
|
|
|
Variant(&'_ u32), //~ ERROR missing lifetime specifier
|
2018-10-11 14:51:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|