]> git.lizzy.rs Git - rust.git/blob - src/test/ui/79040.stderr
Fix diagnostic suggests adding type `[type error]`
[rust.git] / src / test / ui / 79040.stderr
1 error[E0369]: cannot add `{integer}` to `&str`
2   --> $DIR/79040.rs:2:25
3    |
4 LL |     const FOO = "hello" + 1;
5    |                 ------- ^ - {integer}
6    |                 |
7    |                 &str
8
9 error[E0369]: cannot add `{integer}` to `&str`
10   --> $DIR/79040.rs:2:25
11    |
12 LL |     const FOO = "hello" + 1;
13    |                 ------- ^ - {integer}
14    |                 |
15    |                 &str
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0369`.