]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/feature-gate.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / feature-gate.rs
1 // revisions: stock gated
2 // gate-test-const_trait_impl
3
4 #![cfg_attr(gated, feature(const_trait_impl))]
5 #![feature(rustc_attrs)]
6
7 struct S;
8 trait T {}
9 impl const T for S {}
10 //[stock]~^ ERROR const trait impls are experimental
11
12 #[rustc_error]
13 fn main() {} //[gated]~ ERROR fatal error triggered by #[rustc_error]