]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/issue-101280.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / regions / issue-101280.rs
1 use std::cell::Cell;
2
3 type Ty = for<'r> fn(Cell<(&'r i32, &'r i32)>);
4
5 fn f<'r>(f: fn(Cell<(&'r i32, &i32)>)) -> Ty {
6     f
7     //~^ ERROR mismatched types
8 }
9
10 fn main() {}