diff options
Diffstat (limited to 'src/test/compile-fail/borrowck-pat-reassign-sometimes-binding.rs')
| -rw-r--r-- | src/test/compile-fail/borrowck-pat-reassign-sometimes-binding.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/borrowck-pat-reassign-sometimes-binding.rs b/src/test/compile-fail/borrowck-pat-reassign-sometimes-binding.rs index db8129d005a..1e1de3e39cf 100644 --- a/src/test/compile-fail/borrowck-pat-reassign-sometimes-binding.rs +++ b/src/test/compile-fail/borrowck-pat-reassign-sometimes-binding.rs @@ -2,14 +2,14 @@ fn main() { let mut x = none; - alt x { //! NOTE loan of mutable local variable granted here + alt x { //~ NOTE loan of mutable local variable granted here none { // It is ok to reassign x here, because there is in // fact no outstanding loan of x! x = some(0); } some(i) { - x = some(1); //! ERROR assigning to mutable local variable prohibited due to outstanding loan + x = some(1); //~ ERROR assigning to mutable local variable prohibited due to outstanding loan } } copy x; // just to prevent liveness warnings |
