Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
in-band-lifetimes
/
mismatched_trait_impl-2.rs
blob: d4535ac442538db6b58dec9050faa3d394576d5f [
file
] [
log
] [
blame
]
use
std
::
ops
::
Deref
;
trait
Trait
{}
struct
Struct
;
impl
Deref
for
Struct
{
type
Target
=
Trait
;
fn
deref
(&
self
)
->
&
Trait
{
unimplemented
!();
}
}
//~^^^^ ERROR cannot infer an appropriate lifetime for lifetime parameter
fn
main
()
{}