Skip to content

Destructuring of references to trait objects is broken #15031

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

Closed
sfackler opened this issue Jun 19, 2014 · 1 comment · Fixed by #15083
Closed

Destructuring of references to trait objects is broken #15031

sfackler opened this issue Jun 19, 2014 · 1 comment · Fixed by #15083

Comments

@sfackler
Copy link
Member

fn main() {
    let &f = &(&1 as &::std::fmt::Show);
}
test.rs:2:9: 2:11 error: mismatched types: expected `&core::fmt::Show` but found an `&`-pointer pattern
test.rs:2     let &f = &(&1 as &::std::fmt::Show);
                  ^~

This was introduced in the latest nightly.

@edwardw
Copy link
Contributor

edwardw commented Jun 20, 2014

It seems to be the fallout of #14869.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants