Skip to content

Commit

Permalink
Rollup merge of #105785 - JohnTitor:issue-55976-2, r=compiler-errors
Browse files Browse the repository at this point in the history
Add regression test for #55976

Closes #55976
r? `@compiler-errors`

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
matthiaskrgr authored Dec 17, 2022
2 parents 9b6605d + 8ba24ae commit 905caed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/ui/codegen/issue-55976.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// run-pass
// ^-- The above is needed as this issue is related to LLVM/codegen.
// min-llvm-version:15.0.0
// ^-- The above is needed as this issue is fixed by the opaque pointers.

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 905caed

Please sign in to comment.