mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
11 lines
172 B
Rust
11 lines
172 B
Rust
use std::cell::Cell;
|
|
|
|
type Ty = for<'r> fn(Cell<(&'r i32, &'r i32)>);
|
|
|
|
fn f<'r>(f: fn(Cell<(&'r i32, &i32)>)) -> Ty {
|
|
f
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
fn main() {}
|