Skip to content

OpAssign traits are not implemented for rhs reference types #34437

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
ghost opened this issue Jun 23, 2016 · 2 comments
Closed

OpAssign traits are not implemented for rhs reference types #34437

ghost opened this issue Jun 23, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 23, 2016

fn main() {
    let mut a: i8 = 4;
    let     b: i8 = a;

    let c = &b;

    // works
    a = a | &b;

    // not implemented
    //a |= &b;
}

Not a biggie, seems like an oversight.

@apasel422
Copy link
Contributor

Is this a duplicate of #32094?

@arielb1
Copy link
Contributor

arielb1 commented Jul 3, 2016

Yeah, it is.

@arielb1 arielb1 closed this as completed Jul 3, 2016
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

No branches or pull requests

2 participants