From 8ee84aa5b83349869dc4f9c90553b6d552fcdc5e Mon Sep 17 00:00:00 2001 From: rustbot Date: Sat, 4 Jun 2022 12:06:50 +0000 Subject: [PATCH] ices/95307.rs: fixed with errors === stdout === === stderr === error: this file contains an unclosed delimiter --> /home/runner/work/glacier/glacier/ices/95307.rs:8:13 | 1 | pub trait C{async fn new(val: T) -> [u8; _]; | - unclosed delimiter ... 5 | fn foo() -> usize { | - unclosed delimiter ... 8 | fn main(){} | ^ error: non-item in item list --> /home/runner/work/glacier/glacier/ices/95307.rs:2:3 | 1 | pub trait C{async fn new(val: T) -> [u8; _]; | - item list starts here 2 | as Trait<&'a u32> Collate for () = [0u8; 4]; | ^^ non-item starts here ... 8 | fn main(){} | - item list ends here error[E0706]: functions in traits cannot be declared `async` --> /home/runner/work/glacier/glacier/ices/95307.rs:1:13 | 1 | pub trait C{async fn new(val: T) -> [u8; _]; | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | `async` because of this | = note: `async` trait functions are not currently supported = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait error[E0412]: cannot find type `T` in this scope --> /home/runner/work/glacier/glacier/ices/95307.rs:1:31 | 1 | pub trait C{async fn new(val: T) -> [u8; _]; | ^ not found in this scope error[E0658]: using `_` for array lengths is unstable --> /home/runner/work/glacier/glacier/ices/95307.rs:1:42 | 1 | pub trait C{async fn new(val: T) -> [u8; _]; | ^ | = note: see issue #85077 for more information = help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable error: in expressions, `_` can only be used on the left-hand side of an assignment --> /home/runner/work/glacier/glacier/ices/95307.rs:1:42 | 1 | pub trait C{async fn new(val: T) -> [u8; _]; | ^ `_` not allowed here error: aborting due to 6 previous errors Some errors have detailed explanations: E0412, E0658, E0706. For more information about an error, try `rustc --explain E0412`. ============== --- {ices => fixed}/95307.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/95307.rs (100%) diff --git a/ices/95307.rs b/fixed/95307.rs similarity index 100% rename from ices/95307.rs rename to fixed/95307.rs