mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-09 18:52:22 +00:00
21 lines
297 B
Rust
21 lines
297 B
Rust
#[test]
|
|
fn assert_eq_trailing_comma() {
|
|
assert_eq!(1, 1,);
|
|
}
|
|
|
|
#[test]
|
|
fn assert_escape() {
|
|
assert!(r#"☃\backslash"#.contains("\\"));
|
|
}
|
|
|
|
#[test]
|
|
fn assert_ne_trailing_comma() {
|
|
assert_ne!(1, 2,);
|
|
}
|
|
|
|
#[rustfmt::skip]
|
|
#[test]
|
|
fn matches_leading_pipe() {
|
|
matches!(1, | 1 | 2 | 3);
|
|
}
|