about summary refs log tree commit diff
path: root/tests/ui/typeck/issue-79040.rs
blob: fe8dc45346186ddc7dc7352af2816838812c86e9 (plain)
1
2
3
4
5
6
fn main() {
    const FOO = "hello" + 1;
    //~^ ERROR cannot add `{integer}` to `&str`
    //~| ERROR missing type for `const` item
    println!("{}", FOO);
}