Module rustc_hir_analysis::collect::item_bounds
source Β· StructsΒ§
- Assoc
TyTo πOpaque
FunctionsΒ§
- For associated types we include both bounds written on the type (
type X: Trait) and predicates from the trait:where Self::X: Trait. - explicit_
item_ πbounds - item_
bounds π - opaque_
type_ πbounds Opaque types donβt inherit bounds from their parent: for return position impl trait it isnβt possible to write a suitable predicate on the containing function and for type-alias impl trait we donβt have a backwards compatibility issue.