blob: 3704a1a5a392c0113b0a29827aa2a62bb4768feb [file] [log] [blame]
#![allow(unused)]
#![feature(const_trait_impl, inline_const, negative_impls)]
use std::marker::Destruct;
const fn f<T: ~const Destruct>(x: T) {}
struct UnconstDrop;
impl Drop for UnconstDrop {
fn drop(&mut self) {}
}
fn main() {
const {
f(UnconstDrop);
//~^ ERROR can't drop
}
}