]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rustdoc/check-doc-alias-attr-location.stderr
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / rustdoc / check-doc-alias-attr-location.stderr
1 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
2   --> $DIR/check-doc-alias-attr-location.rs:22:12
3    |
4 LL |     fn foo(#[doc(alias = "qux")] _x: u32) -> Self::X {
5    |            ^^^^^^^^^^^^^^^^^^^^^
6
7 error: `#[doc(alias = "...")]` isn't allowed on foreign module
8   --> $DIR/check-doc-alias-attr-location.rs:9:7
9    |
10 LL | #[doc(alias = "foo")]
11    |       ^^^^^^^^^^^^^
12
13 error: `#[doc(alias = "...")]` isn't allowed on implementation block
14   --> $DIR/check-doc-alias-attr-location.rs:12:7
15    |
16 LL | #[doc(alias = "bar")]
17    |       ^^^^^^^^^^^^^
18
19 error: `#[doc(alias = "...")]` isn't allowed on implementation block
20   --> $DIR/check-doc-alias-attr-location.rs:18:7
21    |
22 LL | #[doc(alias = "foobar")]
23    |       ^^^^^^^^^^^^^^^^
24
25 error: `#[doc(alias = "...")]` isn't allowed on type alias in implementation block
26   --> $DIR/check-doc-alias-attr-location.rs:20:11
27    |
28 LL |     #[doc(alias = "assoc")]
29    |           ^^^^^^^^^^^^^^^
30
31 error: `#[doc(alias = "...")]` isn't allowed on statement
32   --> $DIR/check-doc-alias-attr-location.rs:24:15
33    |
34 LL |         #[doc(alias = "stmt")]
35    |               ^^^^^^^^^^^^^^
36
37 error: `#[doc(alias = "...")]` isn't allowed on expression
38   --> $DIR/check-doc-alias-attr-location.rs:26:15
39    |
40 LL |         #[doc(alias = "expr")]
41    |               ^^^^^^^^^^^^^^
42
43 error: `#[doc(alias = "...")]` isn't allowed on match arm
44   --> $DIR/check-doc-alias-attr-location.rs:28:19
45    |
46 LL |             #[doc(alias = "arm")]
47    |                   ^^^^^^^^^^^^^
48
49 error: aborting due to 8 previous errors
50