We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8876cf7 commit 964c58aCopy full SHA for 964c58a
tests/codegen/slice-init.rs
@@ -86,7 +86,7 @@ pub fn option_none_init() -> [Option<u8>; N] {
86
// CHECK-NOT: switch
87
// CHECK: icmp
88
// CHECK-NOT: call void @llvm.memset.p0
89
- [None; N]
+ [const { None }; N]
90
}
91
92
// Use an opaque function to prevent rustc from removing useless drops.
0 commit comments