1 // revisions: edition2018 edition2021
2 //[edition2018] edition:2018
3 //[edition2021] edition:2021
6 #![warn(clippy::manual_assert)]
7 #![allow(dead_code, unused_doc_comments)]
8 #![allow(clippy::nonminimal_bool, clippy::uninlined_format_args)]
17 let a = vec![1, 2, 3];
29 panic!("qaqaq{:?}", a);
31 assert!(a.is_empty(), "qaqaq{:?}", a);
48 let b = vec![1, 2, 3];
52 if b.is_empty() && a.is_empty() {
55 if a.is_empty() && !b.is_empty() {
58 if b.is_empty() || a.is_empty() {
61 if a.is_empty() || !b.is_empty() {
64 assert!(!a.is_empty(), "with expansion {}", one!());
68 // Suggestion should preserve comment
75 panic!("panic with comment") // comment after `panic!`