]> git.lizzy.rs Git - rust.git/commitdiff
additional error in copies test annotated
authorAndre Bogus <bogusandre@gmail.com>
Tue, 31 May 2016 18:14:32 +0000 (20:14 +0200)
committermcarton <cartonmartin+git@gmail.com>
Tue, 31 May 2016 21:30:49 +0000 (23:30 +0200)
tests/compile-fail/copies.rs

index 6f3076f7775b650b0772c644a06d2c426da249d6..0f930657bf75343344ed364eac1ceb3368195678 100644 (file)
@@ -173,7 +173,7 @@ fn if_same_then_else() -> Result<&'static str, ()> {
 
     let _ = match Some(42) {
         Some(_) => 24,
-        None => 24,
+        None => 24, //~ERROR this `match` has identical arm bodies
     };
 
     let _ = match Some(42) {