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