]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-3668-2.stderr
Auto merge of #80790 - JohnTitor:rollup-js1noez, r=JohnTitor
[rust.git] / src / test / ui / issues / issue-3668-2.stderr
index d6a6e8379602d27b90f900f78ff8963118cb99e3..7cee497b0bcedffc8dacfdafb0095cc1539c470d 100644 (file)
@@ -2,7 +2,9 @@ error[E0435]: attempt to use a non-constant value in a constant
   --> $DIR/issue-3668-2.rs:2:27
    |
 LL |     static child: isize = x + 1;
-   |                           ^ non-constant value
+   |            -----          ^ non-constant value
+   |            |
+   |            help: consider using `let` instead of `static`
 
 error: aborting due to previous error