Skip to content

OpAssign traits are not implemented for rhs reference types #34437

Closed
@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions