blob: 439ca694d56365b77856dfdee497cc44e067eb70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//@ known-bug: #140381
pub trait Foo<T> {}
pub trait Lend {
type From<'a>
where
Self: 'a;
fn lend(from: Self::From<'_>) -> impl Foo<Self::From<'_>>;
}
impl<T, F> Lend for (T, F) {
type From<'a> = ();
fn lend(from: Self::From<'_>) -> impl Foo<Self::From<'_>> {
from
}
}
|