blob: 4e8143d5795db99ba74027b94e783ac71f3628ad [file] [log] [blame] [edit]
// #29924
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 }
//~^ ERROR the trait `Trait` cannot be made into an object [E0038]
}
fn main() {}