Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
lifetime-in-associated-trait-bound.rs
blob: e0d4f461974f8e94b7bd49019f2e0f9b943cf05e [
file
] [
log
] [
blame
]
//@ check-pass
#![
feature
(
associated_type_bounds
)]
trait
Trait
{
type
Type
;
fn
method
(&
self
)
->
impl
Trait
<
Type
:
'
_
>;
}
impl
Trait
for
()
{
type
Type
=
();
fn
method
(&
self
)
->
impl
Trait
<
Type
:
'
_
>
{
()
}
}
fn
main
()
{}