From 7d201dc7ef5b0f273eec6cf73ffcce52ea850e2a Mon Sep 17 00:00:00 2001 From: rustbot Date: Mon, 28 Dec 2020 12:25:38 +0000 Subject: [PATCH] ices/51892.rs: fixed with errors === stdout === === stderr === error: generic parameters may not be used in const operations --> /home/runner/work/glacier/glacier/ices/51892.rs:12:41 | 12 | type Type = [u8; std::mem::size_of::<::Type>()]; | ^ cannot perform const operation using `T` | = note: type parameters may not be used in const expressions = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes --> /home/runner/work/glacier/glacier/ices/51892.rs:1:12 | 1 | #![feature(specialization)] | ^^^^^^^^^^^^^^ | = note: `#[warn(incomplete_features)]` on by default = note: see issue #31844 for more information = help: consider using `min_specialization` instead, which is more stable and complete error[E0601]: `main` function not found in crate `51892` --> /home/runner/work/glacier/glacier/ices/51892.rs:1:1 | 1 | / #![feature(specialization)] 2 | | 3 | | pub trait Trait { 4 | | type Type; ... | 12 | | type Type = [u8; std::mem::size_of::<::Type>()]; 13 | | } | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/51892.rs` error: aborting due to 2 previous errors; 1 warning emitted For more information about this error, try `rustc --explain E0601`. ============== --- {ices => fixed}/51892.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/51892.rs (100%) diff --git a/ices/51892.rs b/fixed/51892.rs similarity index 100% rename from ices/51892.rs rename to fixed/51892.rs