]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/codeblock-title.rs
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[rust.git] / src / test / rustdoc / codeblock-title.rs
1 #![crate_name = "foo"]
2
3 // @has foo/fn.bar.html '//*[@class="tooltip compile_fail"]' "ⓘ"
4 // @has foo/fn.bar.html '//*[@class="tooltip ignore"]' "ⓘ"
5 // @has foo/fn.bar.html '//*[@class="tooltip should_panic"]' "ⓘ"
6 // @has foo/fn.bar.html '//*[@data-edition="2018"]' "ⓘ"
7
8 /// foo
9 ///
10 /// ```compile_fail
11 /// foo();
12 /// ```
13 ///
14 /// ```ignore (tidy)
15 /// goo();
16 /// ```
17 ///
18 /// ```should_panic
19 /// hoo();
20 /// ```
21 ///
22 /// ```edition2018
23 /// let x = 0;
24 /// ```
25 pub fn bar() -> usize { 2 }