]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/test-allow-fail-attr.rs
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / test-attrs / test-allow-fail-attr.rs
1 // run-pass
2 // compile-flags: --test
3 #![feature(allow_fail)]
4 #![feature(cfg_panic)]
5
6 #[test]
7 #[allow_fail]
8 fn test1() {
9     #[cfg(not(panic = "abort"))]
10     panic!();
11 }
12
13 #[test]
14 #[allow_fail]
15 fn test2() {
16     assert!(true);
17 }