1
Fork 0
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const-trait-bounds-trait-objects.rs
2023-12-27 12:51:32 +01:00

9 lines
189 B
Rust

#![feature(const_trait_impl)]
// edition: 2021
#[const_trait]
trait Trait {}
fn main() {
let _: &dyn const Trait; //~ ERROR const trait bounds are not allowed in trait object types
}