]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/destructuring-assignment/underscore-range-expr-gating.rs
Add underscore expressions for destructuring assignments
[rust.git] / src / test / ui / destructuring-assignment / underscore-range-expr-gating.rs
index b41f2f52a3d6f5ce4aa0ea1ffcd9a15c60f17702..4ed4f56702c3208df595eef2c12b541743852698 100644 (file)
@@ -4,5 +4,7 @@ struct S { x : u32 }
 
 #[cfg(FALSE)]
 fn foo() {
+    _; //~ ERROR destructuring assignments are unstable
+
     S { x: 5, .. }; //~ ERROR destructuring assignments are unstable
 }