diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-07-29 23:47:55 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-08-13 00:08:14 +0300 |
| commit | 59be332a1b3b190ec5dfdb6768e80f9d312a0c6b (patch) | |
| tree | e44b49f78743634880b525d034b8a82ef651ed2b /src/test/compile-fail/struct-no-fields-enumlike.rs | |
| parent | f55ac6944a88d4da62b30a16cc95893ca050c328 (diff) | |
| download | rust-59be332a1b3b190ec5dfdb6768e80f9d312a0c6b.tar.gz rust-59be332a1b3b190ec5dfdb6768e80f9d312a0c6b.zip | |
Remove restrictions from tuple structs/variants
Hard errors are turned into feature gates
Diffstat (limited to 'src/test/compile-fail/struct-no-fields-enumlike.rs')
| -rw-r--r-- | src/test/compile-fail/struct-no-fields-enumlike.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/compile-fail/struct-no-fields-enumlike.rs b/src/test/compile-fail/struct-no-fields-enumlike.rs deleted file mode 100644 index 6bdbae1e4b9..00000000000 --- a/src/test/compile-fail/struct-no-fields-enumlike.rs +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -struct Foo(); //~ ERROR empty tuple structs and enum variants are not allowed - -fn main() {} |
