mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Fix comments in tests
This commit is contained in:
@@ -40,7 +40,7 @@ const fn const_bar<T>(x: T) -> T {
|
||||
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 @@ const fn const_bar<T>(x: T) -> T {
|
||||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user