blob: ae31d9ae0ac0e1d657349847157f70f64947e204 [file] [log] [blame]
// Regression test for issue #117244.
#![feature(const_trait_impl)]
trait NonConst {}
const fn perform<T: [const] NonConst>() {}
//~^ ERROR `[const]` can only be applied to `#[const_trait]` traits
//~| ERROR `[const]` can only be applied to `#[const_trait]` traits
fn operate<T: const NonConst>() {}
//~^ ERROR `const` can only be applied to `#[const_trait]` traits
fn main() {}