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

Does not infer `Self` #1908

Closed
ice1000 opened this issue Sep 25, 2019 · 4 comments · Fixed by #1924

Comments

@ice1000
Copy link
Contributor

commented Sep 25, 2019

image

enum Test {
    Me(Box<Self>),
}

fn test(t: Test) {
    match t {
        Test::Me(bug) => (),
    }
}

Type of bug is not inferred.
Rivision: d9b4835

@ice1000

This comment has been minimized.

Copy link
Contributor Author

commented Sep 25, 2019

I wanna have a try on fixing this myself

@ice1000

This comment has been minimized.

Copy link
Contributor Author

commented Sep 27, 2019

It

@ice1000

This comment has been minimized.

Copy link
Contributor Author

commented Sep 27, 2019

image

@ice1000

This comment has been minimized.

Copy link
Contributor Author

commented Sep 27, 2019

works!!

@bors bors bot closed this in 92cf0eb Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.