mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
Remove duplicate of tests/ui/impl-trait/nested-return-type2.rs
This commit is contained in:
parent
127fa2261b
commit
cf9bcb26a6
@ -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() {}
|
Loading…
Reference in New Issue
Block a user