blob: 68a8802b2f6455fdb9b445fae0368323b5679ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#![crate_type = "lib"]
#![feature(rustdoc_internals)]
#![doc(keyword = "hello")] //~ ERROR
#[doc(keyword = "hell")] //~ ERROR
mod foo {
fn hell() {}
}
#[doc(keyword = "hall")] //~ ERROR
fn foo() {}
// Regression test for the ICE described in #83512.
trait Foo {
#[doc(keyword = "match")]
//~^ ERROR: `#[doc(keyword = "...")]` should be used on modules
fn quux() {}
}
|