From 5550bebcaa8e38a7c0ed61570bfee0cb5f24d3e5 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 9 Feb 2015 00:01:55 +0100 Subject: Move remaning compile-fail tests that are rejected by the parser to parse-fail --- src/test/parse-fail/virtual-structs.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/test/parse-fail/virtual-structs.rs (limited to 'src/test/parse-fail/virtual-structs.rs') diff --git a/src/test/parse-fail/virtual-structs.rs b/src/test/parse-fail/virtual-structs.rs new file mode 100644 index 00000000000..3b3c7d5a30f --- /dev/null +++ b/src/test/parse-fail/virtual-structs.rs @@ -0,0 +1,20 @@ +// Copyright 2014 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. + +// Test diagnostics for the removed struct inheritance feature. +#![feature(struct_inherit)] + +virtual struct SuperStruct { //~ ERROR `virtual` structs have been removed from the language + f1: isize, +} + +struct Struct : SuperStruct; //~ ERROR `virtual` structs have been removed from the language + +pub fn main() {} -- cgit 1.4.1-3-g733a5