]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/test-type.rs
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[rust.git] / src / test / ui / test-attrs / test-type.rs
1 // compile-flags: --test
2 // run-flags: --test-threads=1
3 // check-run-results
4 // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
5 // ignore-emscripten no threads support
6 // run-pass
7
8
9 #[test]
10 fn test_ok() {
11     let _a = true;
12 }
13
14 #[test]
15 #[should_panic]
16 fn test_panic() {
17     panic!();
18 }
19
20 #[test]
21 #[ignore]
22 fn test_no_run() {
23     loop{
24         println!("Hello, world");
25     }
26 }
27
28 fn main() {}