From f81b94c7c1121c58c0b258f917def15dd384404b Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sun, 6 May 2018 17:00:51 +0900 Subject: [PATCH] Add a test for duplicated attributes on use items --- tests/source/imports.rs | 4 ++++ tests/target/imports.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/source/imports.rs b/tests/source/imports.rs index 09ba23c8202..30ce49605f7 100644 --- a/tests/source/imports.rs +++ b/tests/source/imports.rs @@ -93,3 +93,7 @@ use a::{b::{c::{xxx, yyy, zzz}}}; /// This line is not affected. // This line is deleted. use c; + +// #2670 +#[macro_use] +use imports_with_attr; diff --git a/tests/target/imports.rs b/tests/target/imports.rs index b3d78e609fe..01964fbd295 100644 --- a/tests/target/imports.rs +++ b/tests/target/imports.rs @@ -105,3 +105,7 @@ use a::b::c::{xxx, yyy, zzz}; /// This line is not affected. // This line is deleted. use c; + +// #2670 +#[macro_use] +use imports_with_attr;