mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 05:04:23 +00:00
14 lines
213 B
Rust
14 lines
213 B
Rust
//@ check-pass
|
|
#![expect(incomplete_features)]
|
|
#![feature(explicit_tail_calls)]
|
|
|
|
pub const fn test(x: &Type) {
|
|
const fn takes_borrow(_: &Type) {}
|
|
|
|
become takes_borrow(x);
|
|
}
|
|
|
|
pub struct Type;
|
|
|
|
fn main() {}
|