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
We found a simple way to cause infinite recursion in a sneaky way, it would be great to be able to have this as a warning or something.
When implementing a trait, that trait can be invoked inside the trait implementation. Causing hard to detect bugs.
Simplest example:
use std::fmt; pub struct S; impl fmt::Display for S { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}", self) } } fn main() { print!("{}", S); }
link to playground
The text was updated successfully, but these errors were encountered:
Duplicate of #57965
Sorry, something went wrong.
or rather, #58035
No branches or pull requests
We found a simple way to cause infinite recursion in a sneaky way, it would be great to be able to have this as a warning or something.
When implementing a trait, that trait can be invoked inside the trait implementation. Causing hard to detect bugs.
Simplest example:
link to playground
The text was updated successfully, but these errors were encountered: