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