1 // revisions: edition2018 edition2021
2 // [edition2018] edition:2018
3 // [edition2021] edition:2021
6 #![warn(clippy::manual_assert)]
7 #![allow(clippy::nonminimal_bool)]
16 let a = vec![1, 2, 3];
28 panic!("qaqaq{:?}", a);
30 assert!(a.is_empty(), "qaqaq{:?}", a);
31 assert!(a.is_empty(), "qwqwq");
45 let b = vec![1, 2, 3];
46 assert!(!b.is_empty(), "panic1");
47 assert!(!(b.is_empty() && a.is_empty()), "panic2");
48 assert!(!(a.is_empty() && !b.is_empty()), "panic3");
49 assert!(!(b.is_empty() || a.is_empty()), "panic4");
50 assert!(!(a.is_empty() || !b.is_empty()), "panic5");
51 assert!(!a.is_empty(), "with expansion {}", one!());