diff options
| author | topecongiro <seuchida@gmail.com> | 2017-06-04 23:27:21 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-06-04 23:27:21 +0900 |
| commit | d7de5b7656dcdca403b3560c7c9c2ebb335f8567 (patch) | |
| tree | 41ed9fb4cd58f7c7463600815d36c3c9eed31661 /tests/source/enum.rs | |
| parent | 3e25e628a152bb78cd42b0b81852a63d6e0ab204 (diff) | |
Allow comments after attributes on enum fields
Diffstat (limited to 'tests/source/enum.rs')
| -rw-r--r-- | tests/source/enum.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/source/enum.rs b/tests/source/enum.rs index 70a688428d2..0e2e2c066c3 100644 --- a/tests/source/enum.rs +++ b/tests/source/enum.rs @@ -98,3 +98,14 @@ fn nested_enum_test() { pub struct EmtpyWithComment { // FIXME: Implement this struct } + +// #1115 +pub enum Bencoding<'i> { + Str(&'i [u8]), + Int(i64), + List(Vec<Bencoding<'i>>), + /// A bencoded dict value. The first element the slice of bytes in the source that the dict is + /// composed of. The second is the dict, decoded into an ordered map. + // TODO make Dict "structlike" AKA name the two values. + Dict(&'i [u8], BTreeMap<&'i [u8], Bencoding<'i>>), +} |
