Remove duplicate of tests/ui/impl-trait/nested-return-type2.rs

This commit is contained in:
Oli Scherer 2024-06-27 11:09:20 +00:00
parent 127fa2261b
commit cf9bcb26a6

View File

@ -1,19 +0,0 @@
//@ check-pass
//@ compile-flags: -Zvalidate-mir
trait Duh {}
impl Duh for i32 {}
trait Trait {
type Assoc: Duh;
}
impl<R: Duh, F: FnMut() -> R> Trait for F {
type Assoc = R;
}
fn foo() -> impl Trait<Assoc = impl Send> {
|| 42
}
fn main() {}