Sign in
fuchsia
/
third_party
/
rust
/
5182cc1ca65d05f16ee5e1529707ac6f63233ca9
/
.
/
src
/
test
/
ui
/
lifetimes
/
lifetime-elision-return-type-trait.rs
blob: 1c288a7e44f37a563f7e2feadf38e4997d29f8e1 [
file
] [
log
] [
blame
]
trait
Future
{
type
Item
;
type
Error
;
}
use
std
::
error
::
Error
;
fn
foo
()
->
impl
Future
<
Item
=(),
Error
=
Box
<
Error
>>
{
//~^ ERROR missing lifetime
Ok
(())
}
fn
main
()
{}