mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
14 lines
212 B
Rust
14 lines
212 B
Rust
//@ check-pass
|
|
#![allow(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() {}
|