]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc/codeblock-title.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / rustdoc / codeblock-title.rs
1 #![crate_name = "foo"]
2
3 // @has foo/fn.bar.html '//*[@class="example-wrap compile_fail"]/*[@class="tooltip"]' "ⓘ"
4 // @has foo/fn.bar.html '//*[@class="example-wrap ignore"]/*[@class="tooltip"]' "ⓘ"
5 // @has foo/fn.bar.html '//*[@class="example-wrap should_panic"]/*[@class="tooltip"]' "ⓘ"
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 }