]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/invalid-doc-attr.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / attributes / invalid-doc-attr.stderr
1 error: this attribute can only be applied at the crate level
2   --> $DIR/invalid-doc-attr.rs:4:7
3    |
4 LL | #[doc(test(no_crate_inject))]
5    |       ^^^^^^^^^^^^^^^^^^^^^
6    |
7    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8    = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
9    = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
10 note: the lint level is defined here
11   --> $DIR/invalid-doc-attr.rs:2:9
12    |
13 LL | #![deny(warnings)]
14    |         ^^^^^^^^
15    = note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
16 help: to apply to the crate, use an inner attribute
17    |
18 LL | #![doc(test(no_crate_inject))]
19    |
20
21 error: this attribute can only be applied to a `use` item
22   --> $DIR/invalid-doc-attr.rs:9:7
23    |
24 LL | #[doc(inline)]
25    |       ^^^^^^ only applicable on `use` items
26 ...
27 LL | pub fn foo() {}
28    | ------------ not a `use` item
29    |
30    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31    = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
32    = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
33
34 error: this attribute can only be applied at the crate level
35   --> $DIR/invalid-doc-attr.rs:15:12
36    |
37 LL |     #![doc(test(no_crate_inject))]
38    |            ^^^^^^^^^^^^^^^^^^^^^
39    |
40    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
41    = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
42    = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
43
44 error: conflicting doc inlining attributes
45   --> $DIR/invalid-doc-attr.rs:28:7
46    |
47 LL | #[doc(inline)]
48    |       ^^^^^^ this attribute...
49 LL | #[doc(no_inline)]
50    |       ^^^^^^^^^ ...conflicts with this attribute
51    |
52    = help: remove one of the conflicting attributes
53
54 error: this attribute can only be applied at the crate level
55   --> $DIR/invalid-doc-attr.rs:19:11
56    |
57 LL |     #[doc(test(no_crate_inject))]
58    |           ^^^^^^^^^^^^^^^^^^^^^
59    |
60    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
61    = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
62    = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
63
64 error: this attribute can only be applied to a `use` item
65   --> $DIR/invalid-doc-attr.rs:22:11
66    |
67 LL |     #[doc(inline)]
68    |           ^^^^^^ only applicable on `use` items
69 ...
70 LL |     pub fn baz() {}
71    |     ------------ not a `use` item
72    |
73    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
74    = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
75    = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
76
77 error: aborting due to 6 previous errors
78