Allow '_ to be parsed as a lifetime
diff --git a/tests/test_generics.rs b/tests/test_generics.rs
index 93cb44f..b96d652 100644
--- a/tests/test_generics.rs
+++ b/tests/test_generics.rs
@@ -117,6 +117,13 @@
common::parse::syn::<TypeParamBound>(tokens.into())
);
+ let tokens = quote!('_);
+ let expected = TypeParamBound::Lifetime(Lifetime::new(Term::intern("'_"), Span::def_site()));
+ assert_eq!(
+ expected,
+ common::parse::syn::<TypeParamBound>(tokens.into())
+ );
+
let tokens = quote!(Debug);
let expected = TypeParamBound::Trait(TraitBound {
modifier: TraitBoundModifier::None,