From fc6b63a0c7778ddba285192cb488e9405bf09c4f Mon Sep 17 00:00:00 2001 From: rustbot Date: Tue, 19 Mar 2024 03:06:27 +0000 Subject: [PATCH] ices/108271-2.rs: fixed with errors === stdout === === stderr === error[E0658]: associated const equality is incomplete --> /home/runner/work/glacier/glacier/ices/108271-2.rs:5:35 | 5 | const A: dyn TraitWAssocConst; | ^^^^^ | = note: see issue #92827 for more information = help: add `#![feature(associated_const_equality)]` to the crate attributes to enable = note: this compiler was built on 2024-03-18; consider upgrading it if it is out of date error[E0658]: associated const equality is incomplete --> /home/runner/work/glacier/glacier/ices/108271-2.rs:8:28 | 8 | fn bar>() {} | ^^^^^ | = note: see issue #92827 for more information = help: add `#![feature(associated_const_equality)]` to the crate attributes to enable = note: this compiler was built on 2024-03-18; consider upgrading it if it is out of date error[E0391]: cycle detected when computing type of `TraitWAssocConst::A` --> /home/runner/work/glacier/glacier/ices/108271-2.rs:5:5 | 5 | const A: dyn TraitWAssocConst; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: ...which immediately requires computing type of `TraitWAssocConst::A` again note: cycle used when computing explicit predicates of `bar` --> /home/runner/work/glacier/glacier/ices/108271-2.rs:8:1 | 8 | fn bar>() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information error: the type of the associated constant `A` must not depend on generic parameters --> /home/runner/work/glacier/glacier/ices/108271-2.rs:8:28 | 8 | fn bar>() {} | - ^ its type must not depend on the type parameter `A` | | | the type parameter `A` is defined here error: associated item referring to unboxed trait object for its own trait --> /home/runner/work/glacier/glacier/ices/108271-2.rs:5:14 | 4 | pub trait TraitWAssocConst { | ---------------- in this trait 5 | const A: dyn TraitWAssocConst; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: you might have meant to use `Self` to refer to the implementing type | 5 | const A: Self; | ~~~~ error[E0038]: the trait `TraitWAssocConst` cannot be made into an object --> /home/runner/work/glacier/glacier/ices/108271-2.rs:5:14 | 5 | const A: dyn TraitWAssocConst; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `TraitWAssocConst` cannot be made into an object | note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit --> /home/runner/work/glacier/glacier/ices/108271-2.rs:5:11 | 4 | pub trait TraitWAssocConst { | ---------------- this trait cannot be made into an object... 5 | const A: dyn TraitWAssocConst; | ^ ...because it contains this associated `const` = help: consider moving `A` to another trait error: aborting due to 6 previous errors Some errors have detailed explanations: E0038, E0391, E0658. For more information about an error, try `rustc --explain E0038`. ============== --- {ices => fixed}/108271-2.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/108271-2.rs (100%) diff --git a/ices/108271-2.rs b/fixed/108271-2.rs similarity index 100% rename from ices/108271-2.rs rename to fixed/108271-2.rs