Fix parsing of qself in paths in attributes

This commit is contained in:
David Tolnay
2018-03-15 10:02:40 -07:00
parent 23c6eb3b40
commit 72ecb9064c
4 changed files with 57 additions and 35 deletions
+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>();
}
//////////////////////////////////////////////////////////////////////////