Skip to content

Commit f6adbc3

Browse files
committed
Fix comment
1 parent 5688458 commit f6adbc3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/test/ui/consts/miri_unleashed/inline_asm.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
fn main() {}
77

8-
// Make sure we catch executing bad drop functions.
9-
// The actual error is tested by the error-pattern above.
8+
// Make sure we catch executing inline assembly.
109
static TEST_BAD: () = {
1110
unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
1211
//~^ ERROR could not evaluate static initializer

src/test/ui/consts/miri_unleashed/inline_asm.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: could not evaluate static initializer
2-
--> $DIR/inline_asm.rs:11:14
2+
--> $DIR/inline_asm.rs:10:14
33
|
44
LL | unsafe { llvm_asm!("xor %eax, %eax" ::: "eax"); }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline assembly is not supported

0 commit comments

Comments
 (0)