]> git.lizzy.rs Git - rust.git/blob - library/core/tests/macros.rs
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / library / core / tests / macros.rs
1 #[test]
2 fn assert_eq_trailing_comma() {
3     assert_eq!(1, 1,);
4 }
5
6 #[test]
7 fn assert_escape() {
8     assert!(r#"☃\backslash"#.contains("\\"));
9 }
10
11 #[test]
12 fn assert_ne_trailing_comma() {
13     assert_ne!(1, 2,);
14 }
15
16 #[rustfmt::skip]
17 #[test]
18 fn matches_leading_pipe() {
19     matches!(1, | 1 | 2 | 3);
20 }