Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
underscore-lifetime
/
in-struct.rs
blob: bed89c7dc09875b2e8576305c51249541b9478b8 [
file
] [
log
] [
blame
]
// 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
()
{
}