]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/doc-test-attr.rs
Delay span bug when failing to normalize negative coherence impl subject due to other...
[rust.git] / src / test / rustdoc-ui / doc-test-attr.rs
1 #![crate_type = "lib"]
2 #![deny(invalid_doc_attributes)]
3
4 #![doc(test)]
5 //~^ ERROR `#[doc(test(...)]` takes a list of attributes
6 //~^^ WARN this was previously accepted by the compiler
7 #![doc(test = "hello")]
8 //~^ ERROR `#[doc(test(...)]` takes a list of attributes
9 //~^^ WARN this was previously accepted by the compiler
10 #![doc(test(a))]
11 //~^ ERROR unknown `doc(test)` attribute `a`
12 //~^^ WARN this was previously accepted by the compiler
13
14 pub fn foo() {}