rust/tests/ui/test-attrs/test-type.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
422 B
Rust
Raw Normal View History

//@ compile-flags: --test -Zpanic-abort-tests
//@ run-flags: --test-threads=1
//@ check-run-results
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ needs-threads
//@ run-pass
#[test]
fn test_ok() {
let _a = true;
}
#[test]
#[should_panic]
fn test_panic() {
panic!();
}
#[test]
2022-03-11 12:30:21 +00:00
#[ignore = "msg"]
fn test_no_run() {
2022-03-11 12:30:21 +00:00
loop {
println!("Hello, world");
}
}
fn main() {}