From 56303d843f56113bc49854dfec73d986d1d32c4f Mon Sep 17 00:00:00 2001 From: rustbot Date: Mon, 26 Oct 2020 12:23:41 +0000 Subject: [PATCH] ices/77329.rs: fixed with errors === stdout === === stderr === warning: unnecessary braces around const expression --> /home/runner/work/glacier/glacier/ices/77329.rs:1:42 | 1 | fn bug() -> impl Iterator { | ^^^^^^^^^^^^^^^^^^^ help: remove these braces | = note: `#[warn(unused_braces)]` on by default error[E0601]: `main` function not found in crate `77329` --> /home/runner/work/glacier/glacier/ices/77329.rs:1:1 | 1 | / fn bug() -> impl Iterator { 2 | | std::iter::empty() 3 | | } | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/77329.rs` error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> /home/runner/work/glacier/glacier/ices/77329.rs:1:45 | 1 | fn bug() -> impl Iterator { | ^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `[u8]` = help: unsized locals are gated as an unstable feature help: function arguments must have a statically known size, borrowed types always have a known size | 1 | fn bug() -> impl Iterator { | ^ error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> /home/runner/work/glacier/glacier/ices/77329.rs:1:54 | 1 | fn bug() -> impl Iterator { | ^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `[u8]` = note: the return type of a function must have a statically known size error[E0308]: mismatched types --> /home/runner/work/glacier/glacier/ices/77329.rs:1:44 | 1 | fn bug() -> impl Iterator { | ^^^^^^^^^^^^^^^ expected `usize`, found closure | = note: expected type `usize` found closure `[closure@/home/runner/work/glacier/glacier/ices/77329.rs:1:44: 1:59]` error: aborting due to 4 previous errors; 1 warning emitted Some errors have detailed explanations: E0277, E0308, E0601. For more information about an error, try `rustc --explain E0277`. ============== --- {ices => fixed}/77329.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/77329.rs (100%) diff --git a/ices/77329.rs b/fixed/77329.rs similarity index 100% rename from ices/77329.rs rename to fixed/77329.rs