mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
21 lines
388 B
Rust
21 lines
388 B
Rust
#![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() {}
|
|
}
|