#![feature(const_trait_impl)] const fn maybe_const_maybe() {} //~^ ERROR `~const` trait not allowed with `?` trait polarity modifier fn const_maybe() {} //~^ ERROR `const` trait not allowed with `?` trait polarity modifier const fn maybe_const_negative() {} //~^ ERROR `~const` trait not allowed with `!` trait polarity modifier //~| ERROR negative bounds are not supported fn const_negative() {} //~^ ERROR `const` trait not allowed with `!` trait polarity modifier //~| ERROR negative bounds are not supported #[const_trait] trait Trait {} fn main() {}