From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/reachable/unreachable-code.stderr | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/ui/reachable/unreachable-code.stderr (limited to 'tests/ui/reachable/unreachable-code.stderr') diff --git a/tests/ui/reachable/unreachable-code.stderr b/tests/ui/reachable/unreachable-code.stderr new file mode 100644 index 000000000..cb1b760c2 --- /dev/null +++ b/tests/ui/reachable/unreachable-code.stderr @@ -0,0 +1,17 @@ +error: unreachable statement + --> $DIR/unreachable-code.rs:7:3 + | +LL | loop{} + | ------ any code following this expression is unreachable +LL | +LL | let a = 3; + | ^^^^^^^^^^ unreachable statement + | +note: the lint level is defined here + --> $DIR/unreachable-code.rs:1:9 + | +LL | #![deny(unreachable_code)] + | ^^^^^^^^^^^^^^^^ + +error: aborting due to previous error + -- cgit v1.2.3