rust/tests/ui/type-alias-impl-trait/implied_bounds3.rs

19 lines
158 B
Rust

//@ check-pass
fn foo<F>(_: F)
where
F: 'static,
{
}
fn from<F: Send>(f: F) -> impl Send {
f
}
fn bar<T>() {
foo(from(|| ()))
}
fn main() {
}