Skip to content

Instantly share code, notes, and snippets.

View Ddystopia's full-sized avatar
🙃
Pino Polaris

Oleksandr Babak Ddystopia

🙃
Pino Polaris
  • T-Industry, STU FIIT
  • Bratislava
  • 20:20 (UTC +02:00)
View GitHub Profile
@Ddystopia
Ddystopia / 0000-local-default-generic-bounds.md
Created February 7, 2025 11:02
RFC for default bound generics

Summary

This RFC proposes a mechanism for crates to define default bounds on generics, traits, and associated types. By specifying these defaults at the crate level we can reduce the need for verbose and repetitive ?Trait annotations while maintaining backward compatibility and enabling future language evolution.