From 5fc25224da78afcfdd76783c38ad3beff42a990c Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 20 Apr 2017 14:05:46 +0100 Subject: Stabilize RFC 1506 - clarified ADT kinds --- src/test/compile-fail/numeric-fields-feature-gate.rs | 20 -------------------- src/test/compile-fail/numeric-fields.rs | 2 -- src/test/run-pass/numeric-fields.rs | 2 -- 3 files changed, 24 deletions(-) delete mode 100644 src/test/compile-fail/numeric-fields-feature-gate.rs (limited to 'src/test') diff --git a/src/test/compile-fail/numeric-fields-feature-gate.rs b/src/test/compile-fail/numeric-fields-feature-gate.rs deleted file mode 100644 index bd8ec16ef88..00000000000 --- a/src/test/compile-fail/numeric-fields-feature-gate.rs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -// gate-test-relaxed_adts - -struct S(u8); - -fn main() { - let s = S{0: 10}; //~ ERROR numeric fields in struct expressions are unstable - match s { - S{0: a, ..} => {} //~ ERROR numeric fields in struct patterns are unstable - } -} diff --git a/src/test/compile-fail/numeric-fields.rs b/src/test/compile-fail/numeric-fields.rs index a67707257d2..1a8603778ca 100644 --- a/src/test/compile-fail/numeric-fields.rs +++ b/src/test/compile-fail/numeric-fields.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(relaxed_adts)] - struct S(u8, u16); fn main() { diff --git a/src/test/run-pass/numeric-fields.rs b/src/test/run-pass/numeric-fields.rs index 25e5a2a0fd5..15f054de79d 100644 --- a/src/test/run-pass/numeric-fields.rs +++ b/src/test/run-pass/numeric-fields.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(relaxed_adts)] - struct S(u8, u16); fn main() { -- cgit 1.4.1-3-g733a5