]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/register-attr-tool-fail.stderr
Rollup merge of #100169 - WaffleLapkin:optimize_is_aligned_to, r=workingjubilee
[rust.git] / src / test / ui / attributes / register-attr-tool-fail.stderr
1 error: `register_attr` only accepts identifiers
2   --> $DIR/register-attr-tool-fail.rs:7:18
3    |
4 LL | #![register_attr(a::b)]
5    |                  ^^^^ not an identifier
6
7 error: attribute `attr` was already registered
8   --> $DIR/register-attr-tool-fail.rs:10:24
9    |
10 LL | #![register_attr(attr, attr)]
11    |                  ----  ^^^^
12    |                  |
13    |                  already registered here
14
15 error: `register_tool` only accepts identifiers
16   --> $DIR/register-attr-tool-fail.rs:8:18
17    |
18 LL | #![register_tool(a::b)]
19    |                  ^^^^ not an identifier
20
21 error: tool `tool` was already registered
22   --> $DIR/register-attr-tool-fail.rs:11:24
23    |
24 LL | #![register_tool(tool, tool)]
25    |                  ----  ^^^^
26    |                  |
27    |                  already registered here
28
29 error: malformed `register_attr` attribute input
30   --> $DIR/register-attr-tool-fail.rs:4:1
31    |
32 LL | #![register_attr]
33    | ^^^^^^^^^^^^^^^^^ help: must be of the form: `#![register_attr(attr1, attr2, ...)]`
34
35 error: malformed `register_tool` attribute input
36   --> $DIR/register-attr-tool-fail.rs:5:1
37    |
38 LL | #![register_tool]
39    | ^^^^^^^^^^^^^^^^^ help: must be of the form: `#![register_tool(tool1, tool2, ...)]`
40
41 error: aborting due to 6 previous errors
42