about summary refs log tree commit diff
path: root/src/test/ui/rfc-2632-const-trait-impl/feature-gate.rs
blob: 49b6c0926c50c18c2f940d2acc53cf7a5fa01303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// revisions: stock gated
// gate-test-const_trait_impl

#![cfg_attr(gated, feature(const_trait_impl))]
#![allow(incomplete_features)]

struct S;
trait T {}
impl const T for S {}
//[stock]~^ ERROR const trait impls are experimental
//[stock,gated]~^^ ERROR const trait impls are not yet implemented

fn main() {}