diff options
Diffstat (limited to 'src/test/ui/destructuring-assignment/underscore-range-expr-gating.rs')
| -rw-r--r-- | src/test/ui/destructuring-assignment/underscore-range-expr-gating.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/destructuring-assignment/underscore-range-expr-gating.rs b/src/test/ui/destructuring-assignment/underscore-range-expr-gating.rs new file mode 100644 index 00000000000..b41f2f52a3d --- /dev/null +++ b/src/test/ui/destructuring-assignment/underscore-range-expr-gating.rs @@ -0,0 +1,8 @@ +fn main() {} + +struct S { x : u32 } + +#[cfg(FALSE)] +fn foo() { + S { x: 5, .. }; //~ ERROR destructuring assignments are unstable +} |
