]> git.lizzy.rs Git - rust.git/blob - tests/ui/test-attrs/test-type.rs
internally change regions to be covariant
[rust.git] / tests / 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 #[test]
9 fn test_ok() {
10     let _a = true;
11 }
12
13 #[test]
14 #[should_panic]
15 fn test_panic() {
16     panic!();
17 }
18
19 #[test]
20 #[ignore = "msg"]
21 fn test_no_run() {
22     loop {
23         println!("Hello, world");
24     }
25 }
26
27 fn main() {}