diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-01-09 19:10:45 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-01-10 11:41:12 -0800 |
| commit | 90bc98c5d1f58659b8aaa50e8505919215771b4a (patch) | |
| tree | 7ea74cc751626752229377e67511c96b85e9bc76 /src/test/ui | |
| parent | 18908184de3d6f29c8bd2a364b105fd89a7f0377 (diff) | |
| download | rust-90bc98c5d1f58659b8aaa50e8505919215771b4a.tar.gz rust-90bc98c5d1f58659b8aaa50e8505919215771b4a.zip | |
Modify message to match label
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/borrowck/immutable-arg.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/borrowck/immutable-arg.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/borrowck/immutable-arg.rs b/src/test/ui/borrowck/immutable-arg.rs index ea3a95bd573..7c387ed0808 100644 --- a/src/test/ui/borrowck/immutable-arg.rs +++ b/src/test/ui/borrowck/immutable-arg.rs @@ -12,7 +12,7 @@ fn foo(_x: u32) { _x = 4; - //~^ ERROR cannot assign twice to immutable variable `_x` (Mir) + //~^ ERROR cannot assign to immutable argument `_x` (Mir) //~^^ ERROR cannot assign twice to immutable variable `_x` (Ast) } diff --git a/src/test/ui/borrowck/immutable-arg.stderr b/src/test/ui/borrowck/immutable-arg.stderr index a83addc8c65..40e1878f732 100644 --- a/src/test/ui/borrowck/immutable-arg.stderr +++ b/src/test/ui/borrowck/immutable-arg.stderr @@ -6,7 +6,7 @@ error[E0384]: cannot assign twice to immutable variable `_x` (Ast) 14 | _x = 4; | ^^^^^^ cannot assign twice to immutable variable -error[E0384]: cannot assign twice to immutable variable `_x` (Mir) +error[E0384]: cannot assign to immutable argument `_x` (Mir) --> $DIR/immutable-arg.rs:14:5 | 13 | fn foo(_x: u32) { |
