]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/typeck/issue-79040.stderr
New upstream version 1.56.0+dfsg1
[rustc.git] / src / test / ui / typeck / issue-79040.stderr
index 32049e5d96860a27af505035e8a71aba2b593ab4..aec2e1ec9e4efe0f0296dc4c0b2c6d4841d9c2ce 100644 (file)
@@ -6,13 +6,11 @@ LL |     const FOO = "hello" + 1;
    |                 |
    |                 &str
 
-error[E0369]: cannot add `{integer}` to `&str`
-  --> $DIR/issue-79040.rs:2:25
+error: missing type for `const` item
+  --> $DIR/issue-79040.rs:2:11
    |
 LL |     const FOO = "hello" + 1;
-   |                 ------- ^ - {integer}
-   |                 |
-   |                 &str
+   |           ^^^ help: provide a type for the item: `FOO: <type>`
 
 error: aborting due to 2 previous errors