]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-79040.stderr
Auto merge of #98100 - bjorn3:use_object_for_bitcode_reading, r=wesleywiser
[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`.