Fix comments in tests
This commit is contained in:
parent
f1b11939e2
commit
1605e0ec4e
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ fn main() {
|
||||||
asm!("{}", const const_bar(x));
|
asm!("{}", const const_bar(x));
|
||||||
//~^ ERROR attempt to use a non-constant value in a constant
|
//~^ 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 0);
|
||||||
asm!("{}", const 0i32);
|
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 0);
|
||||||
global_asm!("{}", const 0i32);
|
global_asm!("{}", const 0i32);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue