Skip to content

Commit 905caed

Browse files
authored
Rollup merge of rust-lang#105785 - JohnTitor:issue-55976-2, r=compiler-errors
Add regression test for rust-lang#55976 Closes rust-lang#55976 r? `@compiler-errors` Signed-off-by: Yuki Okushi <[email protected]>
2 parents 9b6605d + 8ba24ae commit 905caed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/ui/codegen/issue-55976.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// run-pass
2+
// ^-- The above is needed as this issue is related to LLVM/codegen.
3+
// min-llvm-version:15.0.0
4+
// ^-- The above is needed as this issue is fixed by the opaque pointers.
5+
6+
fn main() {
7+
type_error(|x| &x);
8+
}
9+
10+
fn type_error<T>(
11+
_selector: for<'a> fn(&'a Vec<Box<dyn for<'b> Fn(&'b u8)>>) -> &'a Vec<Box<dyn Fn(T)>>,
12+
) {
13+
}

0 commit comments

Comments
 (0)