]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/error-codes/E0435.stderr
Auto merge of #80790 - JohnTitor:rollup-js1noez, r=JohnTitor
[rust.git] / src / test / ui / error-codes / E0435.stderr
index 349aa0d07c5d8fe224f1b9a1a7a6629bd28b9714..21827d1fd874372ac93c3a0af9c663979202e7a6 100644 (file)
@@ -1,6 +1,8 @@
 error[E0435]: attempt to use a non-constant value in a constant
   --> $DIR/E0435.rs:3:17
    |
+LL |     let foo = 42u32;
+   |         --- help: consider using `const` instead of `let`
 LL |     let _: [u8; foo];
    |                 ^^^ non-constant value