Skip to content

Commit

Permalink
Add 80291
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Dec 29, 2020
1 parent 96c3dd4 commit 4d5f648
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ices/80291.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
trait ColumnOutput<'a> {
type Output;
}

struct C {}

impl<'a> ColumnOutput<'a> for C {
type Output = u64;
}

fn calc<'a, O, F>(f: F)
where
O: ColumnOutput<'a>,
F: Fn(<O as ColumnOutput>::Output) -> u64,
{
f(vec![].pop().unwrap());
}

fn main() {
calc::<C, _>(|_| unimplemented!());
}

0 comments on commit 4d5f648

Please sign in to comment.