]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/cfg-non-opt-expr.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / cfg-non-opt-expr.stderr
index 0511c5755462e53cbfb459122fc388d8be38578a..1892cee113ecb93edcb646ccd7a08f68941eb1f5 100644 (file)
@@ -1,26 +1,20 @@
 error: removing an expression is not supported in this position
-  --> $DIR/cfg-non-opt-expr.rs:14:13
+  --> $DIR/cfg-non-opt-expr.rs:15:13
    |
 LL |     let _ = #[cfg(unset)] ();
    |             ^^^^^^^^^^^^^
 
 error: removing an expression is not supported in this position
-  --> $DIR/cfg-non-opt-expr.rs:16:21
+  --> $DIR/cfg-non-opt-expr.rs:17:21
    |
 LL |     let _ = 1 + 2 + #[cfg(unset)] 3;
    |                     ^^^^^^^^^^^^^
 
 error: removing an expression is not supported in this position
-  --> $DIR/cfg-non-opt-expr.rs:18:23
+  --> $DIR/cfg-non-opt-expr.rs:19:23
    |
 LL |     let _ = [1, 2, 3][#[cfg(unset)] 1];
    |                       ^^^^^^^^^^^^^
 
-error: removing an expression is not supported in this position
-  --> $DIR/cfg-non-opt-expr.rs:20:13
-   |
-LL |     let _ = #[test] ();
-   |             ^^^^^^^
-
-error: aborting due to 4 previous errors
+error: aborting due to 3 previous errors