StatementKind::FakeRead(FakeReadCause::ForMatchedPlace, _) => {
self.check_op(ops::IfOrMatch);
}
+ StatementKind::LlvmInlineAsm { .. } => {
+ self.check_op(ops::InlineAsm);
+ }
+
// FIXME(eddyb) should these really do nothing?
StatementKind::FakeRead(..)
| StatementKind::StorageLive(_)
| StatementKind::StorageDead(_)
- | StatementKind::LlvmInlineAsm { .. }
| StatementKind::Retag { .. }
| StatementKind::AscribeUserType(..)
| StatementKind::Nop => {}
--- /dev/null
+error[E0019]: constant contains unimplemented expression type
+ --> $DIR/inline_asm.rs:3:1
+ |
+LL | const _: () = unsafe { llvm_asm!("nop") };
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0019`.