Fix parsing of qself in paths in attributes

This commit is contained in:
David Tolnay committed 2018-03-15 10:02:40 -07:00
1 parent 23c6eb3b40
commit 72ecb9064c
4 files changed
+57 -35

No files matched your search

+7
View File
@@ -528,6 +528,13 @@ fn test_gen() {
marker: PhantomData<T>,
}
assert::<TypeMacro<X>>();
#[derive(Serialize)]
struct BigArray {
#[serde(serialize_with = "<[_]>::serialize")]
array: [u8; 256],
}
assert_ser::<BigArray>();
}
//////////////////////////////////////////////////////////////////////////