]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/codeblock-title.rs
Rollup merge of #69599 - Centril:typeck-tweak-wording, r=davidtwco
[rust.git] / src / test / rustdoc / codeblock-title.rs
1 #![crate_name = "foo"]
2
3 // ignore-tidy-linelength
4
5 // @has foo/fn.bar.html '//*[@class="tooltip compile_fail"]/span' "This example deliberately fails to compile"
6 // @has foo/fn.bar.html '//*[@class="tooltip ignore"]/span' "This example is not tested"
7
8 /// foo
9 ///
10 /// ```compile_fail
11 /// foo();
12 /// ```
13 ///
14 /// ```ignore (tidy)
15 /// goo();
16 /// ```
17 ///
18 /// ```
19 /// let x = 0;
20 /// ```
21 pub fn bar() -> usize { 2 }