From 1605e0ec4e21d563703f4504740fa90b16089c20 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Sun, 16 May 2021 03:54:08 +0100 Subject: [PATCH] Fix comments in tests --- src/test/ui/asm/type-check-1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/ui/asm/type-check-1.rs b/src/test/ui/asm/type-check-1.rs index 84bffa65a1280..5e38fb70a4adf 100644 --- a/src/test/ui/asm/type-check-1.rs +++ b/src/test/ui/asm/type-check-1.rs @@ -40,7 +40,7 @@ fn main() { asm!("{}", const const_bar(x)); //~^ ERROR attempt to use a non-constant value in a constant - // Const operands must be integer and must be constants. + // Const operands must be integers and must be constants. asm!("{}", const 0); asm!("{}", const 0i32); @@ -52,7 +52,7 @@ fn main() { } } -// Const operands must be integer or floats, and must be constants. +// Const operands must be integers and must be constants. global_asm!("{}", const 0); global_asm!("{}", const 0i32);