diff options
| author | DeeDeeG <DeeDeeG@users.noreply.github.com> | 2020-03-21 15:33:06 -0400 |
|---|---|---|
| committer | DeeDeeG <DeeDeeG@users.noreply.github.com> | 2020-03-21 18:12:29 -0400 |
| commit | 99ae42876b1e99b558c392d7912b826d32c39476 (patch) | |
| tree | 6dfd09f293b587b4234f3d7e0fef54a1c7af6110 /src/librustc_error_codes/error_codes | |
| parent | 38114ff16e7856f98b2b4be7ab4cd29b38bed59a (diff) | |
| download | rust-99ae42876b1e99b558c392d7912b826d32c39476.tar.gz rust-99ae42876b1e99b558c392d7912b826d32c39476.zip | |
Improve E0308 error message wording
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0308.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0308.md b/src/librustc_error_codes/error_codes/E0308.md index 7d87d54194e..b2c84370490 100644 --- a/src/librustc_error_codes/error_codes/E0308.md +++ b/src/librustc_error_codes/error_codes/E0308.md @@ -13,7 +13,7 @@ let x: i32 = "I am not a number!"; ``` This error occurs when the compiler was unable to infer the concrete type of a -variable. It can occur for several cases, the most common of which is a -mismatch in the expected type that the compiler inferred for a variable's -initializing expression, and the actual type explicitly assigned to the -variable. +variable. It can happen in several cases, the most common being a mismatch +between the type that the compiler inferred for a variable based on its +initializing expression, on the one hand, and the type the author explicitly +assigned to the variable, on the other hand. |
