We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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: