rust/tests/ui/dropck/const_drop_is_valid.rs
2024-07-01 20:51:05 +01:00

12 lines
299 B
Rust

#![feature(effects)]
//~^ WARN: the feature `effects` is incomplete
struct A();
impl const Drop for A {}
//~^ ERROR: const trait impls are experimental
//~| const `impl` for trait `Drop` which is not marked with `#[const_trait]`
//~| not all trait items implemented, missing: `drop`
fn main() {}