diff options
| author | Nick Cameron <nrc@ncameron.org> | 2017-05-27 13:47:42 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-27 13:47:42 +1200 |
| commit | 8ac3fc36cc98f66381759ae4b8ef08021ec102a2 (patch) | |
| tree | 8abe31d565e8aa25f5ce8b3beb597dd021ce9bcf /tests/source | |
| parent | aad250e20e208f8db09355ad023d6eef356d7a78 (diff) | |
| parent | b6c503ac32511008ec59cb4a3ad1876a8b94fdb8 (diff) | |
Merge pull request #1597 from topecongiro/comments-after-attributes
Allow comments after attributes of struct fields
Diffstat (limited to 'tests/source')
| -rw-r--r-- | tests/source/structs.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/source/structs.rs b/tests/source/structs.rs index 5dd9087682c..03847ec883f 100644 --- a/tests/source/structs.rs +++ b/tests/source/structs.rs @@ -16,6 +16,28 @@ pub struct Foo { pub i: TypeForPublicField } +// #1029 +pub struct Foo { + #[doc(hidden)] + // This will NOT get deleted! + bar: String, // hi +} + +// #1029 +struct X { + // `x` is an important number. + #[allow(unused)] // TODO: use + x: u32, +} + +// #410 +#[allow(missing_docs)] +pub struct Writebatch<K: Key> { + #[allow(dead_code)] //only used for holding the internal pointer + writebatch: RawWritebatch, + marker: PhantomData<K>, +} + struct Bar; struct NewType(Type, OtherType); |
