We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81b07ed commit 3c02cfcCopy full SHA for 3c02cfc
tests/codegen/const_scalar_pair.rs
@@ -2,6 +2,8 @@
2
3
#![feature(inline_const)]
4
5
+// Test that we don't generate a memory allocation for the constant
6
+// and read the fields from that, but instead just create the value pair directly.
7
pub fn foo() -> (i32, i32) {
8
// CHECK: ret { i32, i32 } { i32 1, i32 2 }
9
const { (1, 2) }
0 commit comments