mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 22:47:52 +00:00
14 lines
348 B
Rust
14 lines
348 B
Rust
#![feature(explicit_tail_calls, core_intrinsics)]
|
|
#![expect(incomplete_features, internal_features)]
|
|
|
|
fn trans((): ()) {
|
|
unsafe { become std::mem::transmute(()) } //~ error: tail calling intrinsics is not allowed
|
|
|
|
}
|
|
|
|
fn cats(x: u64) -> u32 {
|
|
become std::intrinsics::ctlz(x) //~ error: tail calling intrinsics is not allowed
|
|
}
|
|
|
|
fn main() {}
|