Skip to content

Commit

Permalink
Add 85455
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Jun 4, 2021
1 parent bd4458e commit 6ae5fda
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ices/85455.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#![feature(unboxed_closures)]

trait SomeTrait<'a> {
type Associated;
}

fn give_me_ice<T>() {
callee::<fn(&()) -> <T as SomeTrait<'_>>::Associated>();
}

fn callee<T: Fn<(&'static (),)>>() {
println!(
"{}",
std::any::type_name::<<T as FnOnce<(&'static (),)>>::Output>()
);
}

fn main() {
give_me_ice::<()>();
}

0 comments on commit 6ae5fda

Please sign in to comment.