2 // compile-flags: -Zsave-analysis
3 // ~^ Also regression test for #69588
5 #![feature(register_attr)]
6 #![feature(register_tool)]
8 #![register_attr(attr)]
9 #![register_tool(tool)]
11 use attr as renamed_attr; // OK
12 use tool as renamed_tool; // OK
14 #[renamed_attr] //~ ERROR cannot use an explicitly registered attribute through an import
15 #[renamed_tool::attr] //~ ERROR cannot use a tool module through an import
16 //~| ERROR cannot use a tool module through an import