]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/doc-test-attr.rs
Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09
[rust.git] / tests / 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() {}