mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-13 09:22:44 +00:00
16 lines
253 B
Rust
16 lines
253 B
Rust
//@ only-x86_64
|
|
//@ needs-asm-support
|
|
|
|
// Test to make sure that we emit const errors eagerly for inline asm
|
|
|
|
use std::arch::asm;
|
|
|
|
fn test<T>() {
|
|
unsafe {
|
|
asm!("/* {} */", const 1 / 0);
|
|
//~^ ERROR evaluation of
|
|
}
|
|
}
|
|
|
|
fn main() {}
|