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 need to add support for mutually recursive trait declarations in Aeneas. In the meantime, we should add a span to the error message.
The text was updated successfully, but these errors were encountered:
For example:
pub trait Trait1 { type T: Trait2; } pub trait Trait2: Trait1 {} impl Trait1 for () { type T = (); } impl Trait2 for () {}
Even more to the point:
pub trait Trait { type T: Trait; } impl Trait for () { type T = (); }
See also the rustc-internal docs on coinduction in the trait solver which could be related to this.
Sorry, something went wrong.
Another (simply recursive) example of a different flavour, inspired by the mutual recursion between Iterator and IntoIterator:
Iterator
IntoIterator
pub trait Trait { fn f<T : Trait>(&self, other: &T); }
sonmarcho
No branches or pull requests
We need to add support for mutually recursive trait declarations in Aeneas. In the meantime, we should add a span to the error message.
The text was updated successfully, but these errors were encountered: