You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//@ compile-flags: -Znext-solver#![feature(effects, const_trait_impl)]#![crate_type = "lib"]// #[const_trait] // <-- intentionally absenttraitNonConstTrait{fnsomething();}implNonConstTraitfor(){fnsomething(){}}constfnf(){ <()>::something()}// wrongfully accepted!// should've raised Unimplemented( (): ~const NonConstTrait )// or at least rejected this call some other way