Skip to content

Commit c2986ee

Browse files
committed
Add ui test removed-features-note-version-and-pr-issue-141619
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
1 parent b6685d7 commit c2986ee

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![feature(external_doc)] //~ ERROR feature has been removed
2+
#![doc(include("README.md"))] //~ ERROR unknown `doc` attribute `include`
3+
4+
fn main(){}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
error[E0557]: feature has been removed
2+
--> $DIR/removed-features-note-version-and-pr-issue-141619.rs:1:12
3+
|
4+
LL | #![feature(external_doc)]
5+
| ^^^^^^^^^^^^ feature has been removed
6+
|
7+
= note: use #[doc = include_str!("filename")] instead, which handles macro invocations
8+
9+
error: unknown `doc` attribute `include`
10+
--> $DIR/removed-features-note-version-and-pr-issue-141619.rs:2:8
11+
|
12+
LL | #![doc(include("README.md"))]
13+
| ^^^^^^^^^^^^^^^^^^^^
14+
|
15+
= note: `#[deny(invalid_doc_attributes)]` on by default
16+
17+
error: aborting due to 2 previous errors
18+
19+
For more information about this error, try `rustc --explain E0557`.

0 commit comments

Comments
 (0)