2021-12-20 23:23:59 -06:00
|
|
|
// Regression test for #92111.
|
|
|
|
//
|
2023-07-27 10:51:02 -05:00
|
|
|
// known-bug: #110395
|
|
|
|
// FIXME check-pass
|
2021-12-20 23:23:59 -06:00
|
|
|
|
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
2022-03-21 00:52:41 -05:00
|
|
|
use std::marker::Destruct;
|
|
|
|
|
2021-12-20 23:23:59 -06:00
|
|
|
pub trait Tr {}
|
|
|
|
|
|
|
|
#[allow(drop_bounds)]
|
|
|
|
impl<T: Drop> Tr for T {}
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub struct S(i32);
|
|
|
|
|
|
|
|
impl Tr for S {}
|
|
|
|
|
2022-03-21 00:52:41 -05:00
|
|
|
const fn a<T: ~const Destruct>(t: T) {}
|
2021-12-20 23:23:59 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
a(S(0));
|
|
|
|
}
|