]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/cfg-non-opt-expr.rs
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / cfg-non-opt-expr.rs
index a4b24fa8b4bf6e04decef823fee7a34b08966a62..55eca7f45a5aec0a7814892316c3a1ada6d08ca3 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 #![feature(stmt_expr_attributes)]
+#![feature(custom_test_frameworks)]
 
 fn main() {
     let _ = #[cfg(unset)] ();
@@ -17,6 +18,4 @@ fn main() {
     //~^ ERROR removing an expression is not supported in this position
     let _ = [1, 2, 3][#[cfg(unset)] 1];
     //~^ ERROR removing an expression is not supported in this position
-    let _ = #[test] ();
-    //~^ ERROR removing an expression is not supported in this position
 }