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

Upgrade to rustc 1.18.0-nightly (63c77214c 2017-04-24) #61

Merged
merged 1 commit into from
Apr 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test-project/tests/compile-fail/mut-suggestion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ impl S {
}

fn func(arg: S) {
//~^ NOTE use `mut arg` here to make mutable
//~^ NOTE consider changing this to `mut arg`
arg.mutate(); //~ ERROR cannot borrow immutable argument
//~| NOTE cannot borrow mutably
}

fn main() {
let local = S;
//~^ NOTE use `mut local` here to make mutable
//~^ NOTE consider changing this to `mut local`
local.mutate(); //~ ERROR cannot borrow immutable local variable
//~| NOTE cannot borrow mutably
}