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/auxiliary/empty-struct.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/auxiliary/empty-struct.rs')
| -rw-r--r-- | src/test/compile-fail/auxiliary/empty-struct.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/compile-fail/auxiliary/empty-struct.rs b/src/test/compile-fail/auxiliary/empty-struct.rs index 22f65c2b0d8..dcbb0ce178b 100644 --- a/src/test/compile-fail/auxiliary/empty-struct.rs +++ b/src/test/compile-fail/auxiliary/empty-struct.rs @@ -8,10 +8,14 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(relaxed_adts)] + pub struct XEmpty1 {} pub struct XEmpty2; +pub struct XEmpty6(); pub enum XE { XEmpty3 {}, XEmpty4, + XEmpty5(), } |
