Skip to content

Commit 0e18017

Browse files
Ensure that the error isn't displayed more than once
1 parent 5c836e3 commit 0e18017

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/test/ui/doc-alias-crate-level.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// compile-flags: -Zdeduplicate-diagnostics=no
2+
13
#![feature(doc_alias)]
24

35
#![crate_type = "lib"]

src/test/ui/doc-alias-crate-level.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: `#![doc(alias = "...")]` isn't allowed as a crate level attribute
2-
--> $DIR/doc-alias-crate-level.rs:5:8
2+
--> $DIR/doc-alias-crate-level.rs:7:8
33
|
44
LL | #![doc(alias = "shouldn't work!")]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)