1 // revisions: edition2018 edition2021
2 // [edition2018] edition:2018
3 // [edition2021] edition:2021
5 #![warn(clippy::manual_assert)]
20 panic!("qaqaq{:?}", a);
22 assert!(a.is_empty(), "qaqaq{:?}", a);
23 assert!(a.is_empty(), "qwqwq");
37 let b = vec![1, 2, 3];
38 assert!(!b.is_empty(), "panic1");
39 assert!(!(b.is_empty() && a.is_empty()), "panic2");
40 assert!(!(a.is_empty() && !b.is_empty()), "panic3");
41 assert!(!(b.is_empty() || a.is_empty()), "panic4");
42 assert!(!(a.is_empty() || !b.is_empty()), "panic5");