Sign in
android
/
toolchain
/
rustc
/
da60c8575e02ed54fcffcb7f2f9289b4705b60ff
/
.
/
src
/
test
/
ui
/
impl-trait
/
multiple-lifetimes.rs
blob: 8346542135becfc93c61d5ac02c844f392f2f1e8 [
file
] [
log
] [
blame
]
// Test that multiple liftimes are allowed in impl trait types.
// compile-pass
trait
X
<
'
x
>:
Sized
{}
impl
<
U
>
X
<
'
_
>
for
U
{}
fn
multiple_lifeteimes
<
'a, '
b
,
T
:
'static>(x: &'
a
mut
&
'b T) -> impl X<'
b
>
+
'
a
{
x
}
fn
main
()
{}