summary refs log tree commit diff
path: root/tests/ui/dropck/const_drop_is_valid.rs
blob: 26ef2d61deb69f37e5b60d903084d14849fe1bbe (plain)
1
2
3
4
5
6
7
8
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() {}