mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
11 lines
268 B
Rust
11 lines
268 B
Rust
//@ build-fail
|
|
//@ needs-asm-support
|
|
|
|
use std::arch::global_asm;
|
|
|
|
fn main() {}
|
|
|
|
global_asm!("/* {} */", const 1 << 500); //~ ERROR evaluation of constant value failed [E0080]
|
|
|
|
global_asm!("/* {} */", const 1 / 0); //~ ERROR evaluation of constant value failed [E0080]
|