]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-79040.stderr
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / typeck / issue-79040.stderr
1 error[E0369]: cannot add `{integer}` to `&str`
2   --> $DIR/issue-79040.rs:2:25
3    |
4 LL |     const FOO = "hello" + 1;
5    |                 ------- ^ - {integer}
6    |                 |
7    |                 &str
8
9 error: missing type for `const` item
10   --> $DIR/issue-79040.rs:2:14
11    |
12 LL |     const FOO = "hello" + 1;
13    |              ^ help: provide a type for the item: `: <type>`
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0369`.