mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
14 lines
237 B
Rust
14 lines
237 B
Rust
// Regression test for <https://github.com/rust-lang/rust/issues/144826>.
|
|
//@ check-pass
|
|
|
|
#![feature(explicit_tail_calls)]
|
|
#![expect(incomplete_features)]
|
|
|
|
fn foo(x: fn(&i32)) {
|
|
become bar(x);
|
|
}
|
|
|
|
fn bar(_: fn(&i32)) {}
|
|
|
|
fn main() {}
|