We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c55c4c9 commit 7eedb68Copy full SHA for 7eedb68
tests/ui/asm/const-error.rs
@@ -1,14 +1,16 @@
1
//@ only-x86_64
2
//@ needs-asm-support
3
+//@ check-pass
4
-// Test to make sure that we emit const errors eagerly for inline asm
5
+// Test to make sure that we emit const errors late for inline asm,
6
+// which is consistent with inline const blocks.
7
8
use std::arch::asm;
9
10
fn test<T>() {
11
unsafe {
12
+ // No error here, as this does not get monomorphized.
13
asm!("/* {} */", const 1 / 0);
- //~^ ERROR evaluation of
14
}
15
16
tests/ui/asm/const-error.stderr
0 commit comments