We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b6605d + 8ba24ae commit 905caedCopy full SHA for 905caed
src/test/ui/codegen/issue-55976.rs
@@ -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