Skip to content

Commit

Permalink
Add regression test for rust-lang#55976
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Dec 14, 2022
1 parent 918d0ac commit 732de24
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/ui/codegen/issue-55976.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// run-pass
// ^-- The above is needed as this issue is related to LLVM/codegen.

fn main() {
type_error(|x| &x);
}

fn type_error<T>(
_selector: for<'a> fn(&'a Vec<Box<dyn for<'b> Fn(&'b u8)>>) -> &'a Vec<Box<dyn Fn(T)>>,
) {
}

0 comments on commit 732de24

Please sign in to comment.