summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-79040.rs
blob: 941612542207c2424d6a563ae70ff6eec5e8185c (plain)
1
2
3
4
5
fn main() {
    const FOO = "hello" + 1; //~ ERROR cannot add `{integer}` to `&str`
    //~^ missing type for `const` item
    println!("{}", FOO);
}