]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/test-passed.rs
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[rust.git] / src / test / ui / test-attrs / test-passed.rs
1 // no-prefer-dynamic
2 // compile-flags: --test
3 // run-flags: --test-threads=1
4 // run-pass
5 // check-run-results
6 // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
7 // ignore-wasm32 no support for `Instant`
8
9 // Tests the output of the test harness with only passed tests.
10
11 #![cfg(test)]
12
13 #[test]
14 fn it_works() {
15     assert_eq!(1 + 1, 2);
16 }
17
18 #[test]
19 fn it_works_too() {
20     assert_eq!(1 * 0, 0);
21 }