Parse where-clause with parens
diff --git a/src/generics.rs b/src/generics.rs
index 9b21720..0361bef 100644
--- a/src/generics.rs
+++ b/src/generics.rs
@@ -308,6 +308,10 @@
syn!(PolyTraitRef) => {
|poly| TypeParamBound::Trait(poly, TraitBoundModifier::None)
}
+ |
+ parens!(syn!(PolyTraitRef)) => {
+ |poly| TypeParamBound::Trait(poly.0, TraitBoundModifier::None)
+ }
));
fn description() -> Option<&'static str> {
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 80f8db1..e5e874c 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -105,10 +105,6 @@
//
// use a::{B, D::{self, *, g::H}};
"tests/rust/src/test/run-pass/use-nested-groups.rs" |
- // TODO where-clause with parens
- //
- // where U: (FnOnce(T) -> V) + 'static
- "tests/rust/src/test/ui/e0119/auxiliary/complex_impl_support.rs" |
// not actually a test case
"tests/rust/src/test/run-pass/auxiliary/macro-include-items-expr.rs" => false,
_ => true,