diff options
| author | Jakub Wieczorek <jakub@jakub.cc> | 2014-10-11 19:24:58 +0200 |
|---|---|---|
| committer | Jakub Wieczorek <jakub@jakub.cc> | 2014-10-11 19:42:26 +0200 |
| commit | 403cd40e6a29cc0f897e4b3d80e1e2bcf38f8875 (patch) | |
| tree | df9a8e78271637c38f85af47a25461f91952424c /src/test | |
| parent | 9b9833299245cc1eac68b52169e9152d0f412d6b (diff) | |
| download | rust-403cd40e6a29cc0f897e4b3d80e1e2bcf38f8875.tar.gz rust-403cd40e6a29cc0f897e4b3d80e1e2bcf38f8875.zip | |
Remove `virtual` structs from the language
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/virtual-structs.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/compile-fail/virtual-structs.rs b/src/test/compile-fail/virtual-structs.rs new file mode 100644 index 00000000000..69125bab2ce --- /dev/null +++ b/src/test/compile-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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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: int, +} + +struct Struct : SuperStruct; //~ ERROR `virtual` structs have been removed from the language + +pub fn main() {} |
