rust/tests/crashes/140381.rs

17 lines
311 B
Rust

//@ 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
}
}