blob: cf5d5d859b6e4c0c52ffb8ba093933538e5037c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// #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 }
}
fn main() {}
|