]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc-ui/test-type.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / rustdoc-ui / test-type.rs
1 // compile-flags: --test --test-args=--test-threads=1
2 // check-pass
3 // normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR"
4 // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
5
6 /// ```
7 /// let a = true;
8 /// ```
9 /// ```should_panic
10 /// panic!()
11 /// ```
12 /// ```ignore (incomplete-code)
13 /// fn foo() {
14 /// ```
15 /// ```no_run
16 /// loop {
17 /// println!("Hello, world");
18 /// }
19 /// ```
20 /// fails to compile
21 /// ```compile_fail
22 /// let x = 5;
23 /// x += 2; // shouldn't compile!
24 /// ```
25
26 pub fn f() {}