fix `iter_not_returning_iterator` by Jarcho · Pull Request #8228 · rust-lang/rus...
source link: https://github.com/rust-lang/rust-clippy/pull/8228
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
error: this method is named `iter` but its return type does not implement `Iterator`
LL | fn iter(&self) -> Self::I;
From the issue it looks like false positive, is this fixed? I tried the case described in the issue, but it seems that I am still warned.
The error occurs in a different spot. Before it errored on the trait impl, now it errors on the trait def. The trait def in the issue does not restrict the type in the trait so this is correct. The following test checks if the projection is correctly resolved to a type implementing
Either fix would have fixed the fp in the issue.
Aggregate valuable and interesting links.
Joyk means Joy of geeK