Sign in
android
/
toolchain
/
rustc
/
bc2a45aebf2f3f158c878db02ee23d906d1269df
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-elision-return-type-trait.rs
blob: 2370084b072c7c070b3667901d2e819fb004a5e6 [
file
] [
log
] [
blame
]
trait
Future
{
type
Item
;
type
Error
;
}
use
std
::
error
::
Error
;
fn
foo
()
->
impl
Future
<
Item
=(),
Error
=
Box
<
dyn
Error
>>
{
//~^ ERROR missing lifetime
Ok
(())
}
fn
main
()
{}