Files
rust/tests/ui/traits/const-traits/inherent-impl.rs
2025-08-11 16:58:21 -05:00

14 lines
218 B
Rust

#![feature(const_trait_impl)]
#![allow(bare_trait_objects)]
struct S;
trait T {}
impl const S {}
//~^ ERROR inherent impls cannot be const
impl const dyn T {}
//~^ ERROR inherent impls cannot be const
fn main() {}