rust/src/test/ui/rfc-2632-const-trait-impl/feature-gate.rs

14 lines
313 B
Rust
Raw Normal View History

2020-01-02 18:31:30 -06:00
// 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() {}