fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.6 KiB50 linesraw
1error: 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   |
4LL |     fn foo(#[doc(alias = "qux")] _x: u32) -> Self::X {
5   |            ^^^^^^^^^^^^^^^^^^^^^
6
7error: `#[doc(alias = "...")]` isn't allowed on foreign module
8  --> $DIR/check-doc-alias-attr-location.rs:9:7
9   |
10LL | #[doc(alias = "foo")]
11   |       ^^^^^^^^^^^^^
12
13error: `#[doc(alias = "...")]` isn't allowed on implementation block
14  --> $DIR/check-doc-alias-attr-location.rs:12:7
15   |
16LL | #[doc(alias = "bar")]
17   |       ^^^^^^^^^^^^^
18
19error: `#[doc(alias = "...")]` isn't allowed on implementation block
20  --> $DIR/check-doc-alias-attr-location.rs:18:7
21   |
22LL | #[doc(alias = "foobar")]
23   |       ^^^^^^^^^^^^^^^^
24
25error: `#[doc(alias = "...")]` isn't allowed on type alias in implementation block
26  --> $DIR/check-doc-alias-attr-location.rs:20:11
27   |
28LL |     #[doc(alias = "assoc")]
29   |           ^^^^^^^^^^^^^^^
30
31error: `#[doc(alias = "...")]` isn't allowed on statement
32  --> $DIR/check-doc-alias-attr-location.rs:24:15
33   |
34LL |         #[doc(alias = "stmt")]
35   |               ^^^^^^^^^^^^^^
36
37error: `#[doc(alias = "...")]` isn't allowed on expression
38  --> $DIR/check-doc-alias-attr-location.rs:26:15
39   |
40LL |         #[doc(alias = "expr")]
41   |               ^^^^^^^^^^^^^^
42
43error: `#[doc(alias = "...")]` isn't allowed on match arm
44  --> $DIR/check-doc-alias-attr-location.rs:28:19
45   |
46LL |             #[doc(alias = "arm")]
47   |                   ^^^^^^^^^^^^^
48
49error: aborting due to 8 previous errors
50