specialization: default items completely drop candidates instead of ambiguity (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
which is unsound during coherence, as coherence requires completeness
#![feature(specialization)]
trait Default { type Id; }
impl Default for T { default type Id = T; }
trait Overlap { type Assoc; }
impl Overlap for u32 { type Assoc = usize; }
impl Overlap for ::Id { type Assoc = Box; }
let eligible = match &impl_source { |
---|
Metadata
Metadata
Labels
Development
No branches or pull requests