Skip to content

Commit

Permalink
Upgrade to rustc 1.18.0-nightly (63c77214c 2017-04-24)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin authored and Thomas Bracht Laumann Jespersen committed Apr 25, 2017
1 parent a3cb48d commit d2833cd
Showing 1 changed file with 2 additions and 2 deletions.
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
}

0 comments on commit d2833cd

Please sign in to comment.