diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-2463.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-2463.rs b/src/test/ui/issues/issue-2463.rs new file mode 100644 index 000000000..d24a47c53 --- /dev/null +++ b/src/test/ui/issues/issue-2463.rs @@ -0,0 +1,25 @@ +// run-pass +#![allow(dead_code)] +// pretty-expanded FIXME #23616 + +struct Pair { f: isize, g: isize } + +pub fn main() { + + let x = Pair { + f: 0, + g: 0, + }; + + let _y = Pair { + f: 1, + g: 1, + .. x + }; + + let _z = Pair { + f: 1, + .. x + }; + +} |