14 lines
207 B
Rust
14 lines
207 B
Rust
//@ edition: 2021
|
|
|
|
trait Trait {}
|
|
|
|
impl dyn Trait {
|
|
const CONST: () = ();
|
|
}
|
|
|
|
fn main() {
|
|
match () {
|
|
Trait::CONST => {}
|
|
//~^ ERROR trait objects must include the `dyn` keyword
|
|
}
|
|
}
|