We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in the old solver satisfies_trait_bound compiles while satisfies_projection_bound does not.
satisfies_trait_bound
satisfies_projection_bound
trait Trait<'a, 'b> { type Assoc; } trait TraitBound<'b> {} impl<'b, T: for<'a> Trait<'a, 'b>> TraitBound<'b> for T {} trait ProjectionBound<'b> {} impl<'b, T: for<'a> Trait<'a, 'b, Assoc = usize>> ProjectionBound<'b> for T {} impl<'a, T> Trait<'a, 'static> for T { type Assoc = usize; } fn trait_bound<'b, T: TraitBound<'b>>() {} fn projection_bound<'b, T: ProjectionBound<'b>>() {} fn satisfies_trait_bound<T: for<'b> Trait<'static, 'b>>() { trait_bound::<T>() } fn satisfies_projection_bound<T: for<'b> Trait<'static, 'b, Assoc = usize>>() { projection_bound::<T>() } fn main() {}
The text was updated successfully, but these errors were encountered:
can be closed. The behavior is now the same for the old and the new solver once rust-lang/rust#119820 has been merged
Sorry, something went wrong.
No branches or pull requests
in the old solver
satisfies_trait_bound
compiles whilesatisfies_projection_bound
does not.The text was updated successfully, but these errors were encountered: