diff options
Diffstat (limited to 'tests/ui/conditional-compilation/test-cfg.stderr')
| -rw-r--r-- | tests/ui/conditional-compilation/test-cfg.stderr | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/ui/conditional-compilation/test-cfg.stderr b/tests/ui/conditional-compilation/test-cfg.stderr index 9715f16acc2..1212074e417 100644 --- a/tests/ui/conditional-compilation/test-cfg.stderr +++ b/tests/ui/conditional-compilation/test-cfg.stderr @@ -1,8 +1,19 @@ error[E0425]: cannot find function `foo` in this scope - --> $DIR/test-cfg.rs:7:5 + --> $DIR/test-cfg.rs:8:5 | LL | foo(); | ^^^ not found in this scope + | +note: found an item that was configured out + --> $DIR/test-cfg.rs:5:4 + | +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 |
