rust/tests/ui/typeck/issue-79040.rs

7 lines
198 B
Rust

fn main() {
const FOO = "hello" + 1; //~ ERROR cannot add `{integer}` to `&str`
//~^ missing type for `const` item
//~| ERROR cannot add `{integer}` to `&str`
println!("{}", FOO);
}