mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
433da1fc04
They pass fine.
9 lines
121 B
Rust
9 lines
121 B
Rust
fn project<T>(x: &(T,)) -> &T { &x.0 }
|
|
|
|
fn dummy() {}
|
|
|
|
fn main() {
|
|
let f = (dummy as fn(),);
|
|
(*project(&f))();
|
|
}
|