about summary refs log tree commit diff
path: root/tests/ui/conditional-compilation/test-cfg.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/conditional-compilation/test-cfg.stderr')
-rw-r--r--tests/ui/conditional-compilation/test-cfg.stderr8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/ui/conditional-compilation/test-cfg.stderr b/tests/ui/conditional-compilation/test-cfg.stderr
index 1212074e417..379456f74b1 100644
--- a/tests/ui/conditional-compilation/test-cfg.stderr
+++ b/tests/ui/conditional-compilation/test-cfg.stderr
@@ -7,13 +7,11 @@ LL |     foo();
 note: found an item that was configured out
   --> $DIR/test-cfg.rs:5:4
    |
+LL | #[cfg(all(foo, bar))] // foo AND bar
+   |                --- the item is gated here
+LL |
 LL | fn foo() {}
    |    ^^^
-note: the item is gated here
-  --> $DIR/test-cfg.rs:3:16
-   |
-LL | #[cfg(all(foo, bar))] // foo AND bar
-   |                ^^^
 
 error: aborting due to 1 previous error