We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8389cd3 + 503abc7 commit 4d73300Copy full SHA for 4d73300
1 file changed
src/test/ui/consts/issue-39161-bogus-error.rs
@@ -0,0 +1,13 @@
1
+// check-pass
2
+
3
+pub struct X {
4
+ pub a: i32,
5
+ pub b: i32,
6
+}
7
8
+fn main() {
9
+ const DX: X = X { a: 0, b: 0 };
10
+ const _X1: X = X { a: 1, ..DX };
11
+ let _x2 = X { a: 1, b: 2, ..DX };
12
+ const _X3: X = X { a: 1, b: 2, ..DX };
13
0 commit comments