rust/tests/ui/associated-type-bounds/issue-70292.rs

20 lines
185 B
Rust

//@ check-pass
fn foo<F>(_: F)
where
F: for<'a> Trait<Output: 'a>,
{
}
trait Trait {
type Output;
}
impl<T> Trait for T {
type Output = ();
}
fn main() {
foo(());
}