]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-ui/check-attr-test.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / rustdoc-ui / check-attr-test.rs
CommitLineData
f9f354fc
XL
1// compile-flags:--test
2
6a06907d 3#![deny(rustdoc::invalid_codeblock_attributes)]
f9f354fc
XL
4
5/// foo
6///
7/// ```compile-fail,compilefail,comPile_fail
8/// boo
9/// ```
10pub fn foo() {}
11
12/// bar
13///
14/// ```should-panic,shouldpanic,shOuld_panic
15/// boo
16/// ```
17pub fn bar() {}
18
19/// foobar
20///
21/// ```no-run,norun,nO_run
22/// boo
23/// ```
24pub fn foobar() {}
25
f9f354fc
XL
26/// b
27///
28/// ```test-harness,testharness,tesT_harness
29/// boo
30/// ```
31pub fn b() {}