]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-79040.rs
Rollup merge of #106860 - anden3:doc-double-spaces, r=Dylan-DPC
[rust.git] / tests / ui / typeck / issue-79040.rs
1 fn main() {
2     const FOO = "hello" + 1; //~ ERROR cannot add `{integer}` to `&str`
3     //~^ missing type for `const` item
4     println!("{}", FOO);
5 }