Move regression test for #83512 into doc_keyword.rs
This commit is contained in:
parent
2cedd86b1c
commit
e9e844f44c
4 changed files with 15 additions and 19 deletions
|
@ -10,3 +10,11 @@ mod foo {
|
|||
|
||||
#[doc(keyword = "hall")] //~ ERROR
|
||||
fn foo() {}
|
||||
|
||||
|
||||
// Regression test for the ICE described in #83512.
|
||||
trait Foo {
|
||||
#[doc(keyword = "match")]
|
||||
//~^ ERROR: `#[doc(keyword = "...")]` can only be used on modules
|
||||
fn quux() {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue