summaryrefslogtreecommitdiffstats
path: root/tests/ui/codegen/issue-55976.rs
blob: fee54fc6206db9b9f4cacd66f6d6d281bbfaa43a (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// ^-- The above is needed as this issue is related to LLVM/codegen.

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)>>,
) {
}