Skip to content

mutでないVec型変数に対してpushできてしまう #202

Description

@kumavale

Problem

fn main() {
    let a: Vec<i32> = Vec::new();
    a.push(1);  // ok
}

Possible Solution

No response

Notes

#87 に関連

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions