1 2 3 4 5 6 7 8
// { dg-options "-frust-compile-until=lowering" } struct Test<T> { _inner: T, } trait Action {} unsafe impl<#[may_dangle] T> Action for Test<T> {} //{ dg-error ".may_dangle. has unstable semantics and may be removed in the future." "" { target *-*-* } }