fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
994 B38 linesraw
1error: cannot use an explicitly registered attribute through an import
2  --> $DIR/register-attr-tool-import.rs:12:3
3   |
4LL | #[renamed_attr]
5   |   ^^^^^^^^^^^^
6   |
7note: the explicitly registered attribute imported here
8  --> $DIR/register-attr-tool-import.rs:9:5
9   |
10LL | use attr as renamed_attr; // OK
11   |     ^^^^^^^^^^^^^^^^^^^^
12
13error: cannot use a tool module through an import
14  --> $DIR/register-attr-tool-import.rs:13:3
15   |
16LL | #[renamed_tool::attr]
17   |   ^^^^^^^^^^^^
18   |
19note: the tool module imported here
20  --> $DIR/register-attr-tool-import.rs:10:5
21   |
22LL | use tool as renamed_tool; // OK
23   |     ^^^^^^^^^^^^^^^^^^^^
24
25error: cannot use a tool module through an import
26  --> $DIR/register-attr-tool-import.rs:13:3
27   |
28LL | #[renamed_tool::attr]
29   |   ^^^^^^^^^^^^
30   |
31note: the tool module imported here
32  --> $DIR/register-attr-tool-import.rs:10:5
33   |
34LL | use tool as renamed_tool; // OK
35   |     ^^^^^^^^^^^^^^^^^^^^
36
37error: aborting due to 3 previous errors
38