1 // revisions: stock gated
2 // gate-test-const_trait_impl
4 #![cfg_attr(gated, feature(const_trait_impl))]
5 #![feature(rustc_attrs)]
8 #[const_trait] //[stock]~ ERROR `const_trait` is a temporary placeholder
11 //[stock]~^ ERROR const trait impls are experimental
14 fn main() {} //[gated]~ ERROR fatal error triggered by #[rustc_error]