summary refs log tree commit diff
path: root/tests/ui/dropck/const_drop_is_valid.rs
blob: 0441b6ed067a45e4905dc6d518bfec2707f76e64 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![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() {}