We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62ad1c8 commit 05c8753Copy full SHA for 05c8753
compiler/rustc_hir/src/hir.rs
@@ -655,6 +655,9 @@ impl<'hir> Generics<'hir> {
655
match bound {
656
GenericBound::Trait(data, _) => {
657
let segment = data.trait_ref.path.segments.first()?;
658
+ if segment.args().parenthesized != GenericArgsParentheses::ParenSugar {
659
+ return None;
660
+ }
661
let binding = segment.args().bindings.first()?;
662
if let TypeBindingKind::Equality { term: Term::Ty(ty) } = binding.kind {
663
Some(ty)
0 commit comments