]> git.lizzy.rs Git - rust.git/blob - tests/ui/codegen/issue-55976.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / codegen / issue-55976.rs
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 }