summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/min_rust_version
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui-toml/min_rust_version')
-rw-r--r--src/tools/clippy/tests/ui-toml/min_rust_version/min_rust_version.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/tests/ui-toml/min_rust_version/min_rust_version.rs b/src/tools/clippy/tests/ui-toml/min_rust_version/min_rust_version.rs
index 1e3ec123a..e1dc3f438 100644
--- a/src/tools/clippy/tests/ui-toml/min_rust_version/min_rust_version.rs
+++ b/src/tools/clippy/tests/ui-toml/min_rust_version/min_rust_version.rs
@@ -41,7 +41,7 @@ fn match_like_matches() {
fn match_same_arms() {
match (1, 2, 3) {
(1, .., 3) => 42,
- (.., 3) => 42, //~ ERROR match arms have same body
+ (.., 3) => 42,
_ => 0,
};
}
@@ -49,7 +49,7 @@ fn match_same_arms() {
fn match_same_arms2() {
let _ = match Some(42) {
Some(_) => 24,
- None => 24, //~ ERROR match arms have same body
+ None => 24,
};
}