rust/tests/ui/rfcs/rfc-2632-const-trait-impl/inherent-impl.rs
2023-06-05 16:09:46 +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() {}