rust/tests/crashes/140381.rs
Matthias Krüger 0443a66d39 more ice tests
2025-05-18 17:25:34 +02:00

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