2017-12-26 22:11:18 +09:00
|
|
|
// #29924
|
|
|
|
|
|
|
|
|
|
trait Trait {
|
|
|
|
|
const N: usize;
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-28 14:46:13 -04:00
|
|
|
impl dyn Trait {
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ ERROR the trait `Trait` is not dyn compatible [E0038]
|
2017-12-26 22:11:18 +09:00
|
|
|
const fn n() -> usize { Self::N }
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ ERROR the trait `Trait` is not dyn compatible [E0038]
|
2025-02-12 15:52:15 +01:00
|
|
|
//~| ERROR the trait `Trait` is not dyn compatible
|
2017-12-26 22:11:18 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|