rust/tests/ui/traits/const-traits/inherent-impl.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00: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 T {}
//~^ ERROR inherent impls cannot be `const`
fn main() {}