blob: f3024120df1f957a88e29f085f78c03f095945f6 [file] [log] [blame]
// #29924
#![feature(associated_consts)]
trait Trait {
const N: usize;
}
impl dyn Trait {
//~^ ERROR the trait `Trait` cannot be made into an object [E0038]
const fn n() -> usize { Self::N }
}
fn main() {}