From eb5d21781e22e72714294d05ab0bdd9c4e63162d Mon Sep 17 00:00:00 2001 From: rustbot Date: Thu, 16 Apr 2020 12:07:10 +0000 Subject: [PATCH] ices/66706-2.rs: fixed with errors === stdout === === stderr === error: expected identifier, found reserved identifier `_` --> /home/runner/work/glacier/glacier/ices/66706-2.rs:2:26 | 2 | [0; match [|f @ &ref _| () ] {} ] | ^ expected identifier, found reserved identifier error[E0658]: `match` is not allowed in a `const` --> /home/runner/work/glacier/glacier/ices/66706-2.rs:2:9 | 2 | [0; match [|f @ &ref _| () ] {} ] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #49146 for more information = help: add `#![feature(const_if_match)]` to the crate attributes to enable error[E0308]: mismatched types --> /home/runner/work/glacier/glacier/ices/66706-2.rs:2:5 | 1 | fn bug() { | - help: try adding a return type: `-> [{integer}; _]` 2 | [0; match [|f @ &ref _| () ] {} ] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found array `[{integer}; _]` error: aborting due to 3 previous errors Some errors have detailed explanations: E0308, E0658. For more information about an error, try `rustc --explain E0308`. ============== --- {ices => fixed}/66706-2.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/66706-2.rs (100%) diff --git a/ices/66706-2.rs b/fixed/66706-2.rs similarity index 100% rename from ices/66706-2.rs rename to fixed/66706-2.rs