You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
§11.6: blanket impls (impl[T: Bound] Trait for T) satisfy trait bounds but fail method call resolution ('unknown method') #3048
call_bounded(&7) satisfies the T: Printable bound (blanket_trait_syms), then both v.show_it() and 7.show_it() fail with:
error: unknown method 'show_it' for type '&isize'
error: unknown method 'show_it' for type 'isize'
Expected
Per §11.6 ("A blanket impl provides a trait implementation for all types satisfying a bound"), calling a method of Trait on a concrete or generic type whose bound satisfies impl[T: Bound] Trait for T resolves and monomorphizes the blanket impl's method body.
Activity
#3044, #3046, #3047 (Gap 1), #3048, #3049: five spec-gap fixes from the
ehartford commentedon Nov 6, 2026
Fixed in #3054 (merged as 12489f1).