Skip to content
New issue

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

Intention: substitute associated type #2766

Closed
matklad opened this issue Aug 12, 2018 · 0 comments · Fixed by #5643
Closed

Intention: substitute associated type #2766

matklad opened this issue Aug 12, 2018 · 0 comments · Fixed by #5643
Labels

Comments

@matklad
Copy link
Member

matklad commented Aug 12, 2018

Before:

impl Iterator for Foo {
    type Item = i32;

    fn next(&mut self) -> Option<<Self as /*caret*/ Iterator>::Item> {
        unimplemented!()
    }
}

After:

impl Iterator for Foo {
    type Item = i32;

    fn next(&mut self) -> Option</*caret*/i32> {
        unimplemented!()
    }
}
@mchernyavsky mchernyavsky self-assigned this Nov 30, 2018
@mchernyavsky mchernyavsky removed their assignment Sep 26, 2019
bors bot added a commit that referenced this issue Aug 2, 2020
5643: INT: add intention to substitute an associated type r=mchernyavsky a=Kobzol

This PR adds an intention to substitute an associated type with its value.

Fixes: #2766

Co-authored-by: Jakub Beránek <berykubik@gmail.com>
@bors bors bot closed this as completed in b263ab3 Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants