From f3a431c6c10b4eb8fadaf009f390e3c06b64b99c Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:44 +0000 Subject: [PATCH] ices/74282.rs: fixed with errors === stdout === === stderr === error[E0308]: mismatched types --> /home/runner/work/glacier/glacier/ices/74282.rs:8:5 | 8 | Anonymous(|| 3) | ^^^^^^^^^^^^^^^ expected `()`, found struct `Anonymous` | help: consider using a semicolon here | 8 | Anonymous(|| 3); | + help: try adding a return type | 6 | fn test() -> Anonymous { | ++++++++++++ error[E0308]: mismatched types --> /home/runner/work/glacier/glacier/ices/74282.rs:8:15 | 3 | type Closure = impl Fn() -> u64; | ---------------- the expected opaque type ... 8 | Anonymous(|| 3) | ^^^^ expected closure, found a different closure | = note: expected opaque type `Closure` found closure `[closure@/home/runner/work/glacier/glacier/ices/74282.rs:8:15: 8:19]` = note: no two closures, even if identical, have the same type = help: consider boxing your closure and/or using it as a trait object error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0308`. ============== --- {ices => fixed}/74282.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/74282.rs (100%) diff --git a/ices/74282.rs b/fixed/74282.rs similarity index 100% rename from ices/74282.rs rename to fixed/74282.rs