Merge pull request #1083 from serde-rs/ty-macro

Fix bounds for macro named the same as a type parameter
This commit is contained in:
David Tolnay
2017-11-05 12:56:57 -08:00
committed by GitHub
2 changed files with 19 additions and 0 deletions
+11
View File
@@ -525,6 +525,17 @@ fn test_gen() {
other: isize,
}
assert::<SkippedStaticStr>();
macro_rules! T {
() => { () }
}
#[derive(Serialize, Deserialize)]
struct TypeMacro<T> {
mac: T!(),
marker: PhantomData<T>,
}
assert::<TypeMacro<X>>();
}
//////////////////////////////////////////////////////////////////////////