1
Fork 0
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const-trait-bounds-trait-objects.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
189 B
Rust
Raw Normal View History

#![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
}