diff options
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 19cfc13ea61..300868721e3 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -3167,8 +3167,8 @@ x <<= 2; To fix this error, please check that this type implements this binary operation. Example: -```compile_fail -let x = 12u32; // the `u32` type does implement the `ShlAssign` trait +``` +let mut x = 12u32; // the `u32` type does implement the `ShlAssign` trait x <<= 2; // ok! ``` |
