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