Skip to content

Commit 0f56ccd

Browse files
authored
Rollup merge of rust-lang#70735 - GuillaumeGomez:cleanup-e0502, r=Dylan-DPC
Clean up E0502 explanation r? @Dylan-DPC
2 parents 80690b0 + 9db7360 commit 0f56ccd

File tree

1 file changed

+1
-2
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+1
-2
lines changed

src/librustc_error_codes/error_codes/E0502.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
This error indicates that you are trying to borrow a variable as mutable when it
2-
has already been borrowed as immutable.
1+
A variable already borrowed as immutable was borrowed as mutable.
32

43
Erroneous code example:
54

0 commit comments

Comments
 (0)