From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../ui/use/use-nested-groups-unused-imports.stderr | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/ui/use/use-nested-groups-unused-imports.stderr (limited to 'tests/ui/use/use-nested-groups-unused-imports.stderr') diff --git a/tests/ui/use/use-nested-groups-unused-imports.stderr b/tests/ui/use/use-nested-groups-unused-imports.stderr new file mode 100644 index 000000000..6610f8ecd --- /dev/null +++ b/tests/ui/use/use-nested-groups-unused-imports.stderr @@ -0,0 +1,26 @@ +error: unused imports: `*`, `Foo`, `baz::{}`, `foobar::*` + --> $DIR/use-nested-groups-unused-imports.rs:15:11 + | +LL | use foo::{Foo, bar::{baz::{}, foobar::*}, *}; + | ^^^ ^^^^^^^ ^^^^^^^^^ ^ + | +note: the lint level is defined here + --> $DIR/use-nested-groups-unused-imports.rs:2:9 + | +LL | #![deny(unused_imports)] + | ^^^^^^^^^^^^^^ + +error: unused import: `*` + --> $DIR/use-nested-groups-unused-imports.rs:17:24 + | +LL | use foo::bar::baz::{*, *}; + | ^ + +error: unused import: `foo::{}` + --> $DIR/use-nested-groups-unused-imports.rs:19:5 + | +LL | use foo::{}; + | ^^^^^^^ + +error: aborting due to 3 previous errors + -- cgit v1.2.3