blob: 3142704b78cf6ea72fd9cc66f11b8fa4bd2e5d13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)>>,
) {
}
|