blob: 07b23adf9e1f66691a0d450106b4092e894694a9 [file] [log] [blame]
#![feature(const_trait_impl)]
#![allow(bare_trait_objects)]
struct S;
trait T {}
impl const S {}
//~^ ERROR inherent impls cannot be `const`
impl const dyn T {}
//~^ ERROR inherent impls cannot be `const`
fn main() {}