mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
13 lines
190 B
Rust
13 lines
190 B
Rust
// #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() {}
|