]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-ui/check-attr.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / rustdoc-ui / check-attr.rs
CommitLineData
6a06907d 1#![deny(rustdoc::invalid_codeblock_attributes)]
f9f354fc
XL
2
3/// foo
4//~^ ERROR
5//~^^ ERROR
6//~^^^ ERROR
7///
8/// ```compile-fail,compilefail,comPile_fail
9/// boo
10/// ```
11pub fn foo() {}
12
13/// bar
14//~^ ERROR
15//~^^ ERROR
16//~^^^ ERROR
17///
18/// ```should-panic,shouldpanic,sHould_panic
19/// boo
20/// ```
21pub fn bar() {}
22
23/// foobar
24//~^ ERROR
25//~^^ ERROR
26//~^^^ ERROR
27///
28/// ```no-run,norun,no_Run
29/// boo
30/// ```
31pub fn foobar() {}
32
33/// barfoo
34//~^ ERROR
35//~^^ ERROR
36//~^^^ ERROR
37///
38/// ```allow-fail,allowfail,alLow_fail
39/// boo
40/// ```
41pub fn barfoo() {}
42
43/// b
44//~^ ERROR
45//~^^ ERROR
46//~^^^ ERROR
47///
48/// ```test-harness,testharness,teSt_harness
49/// boo
50/// ```
51pub fn b() {}