rust/src/test/compile-fail/minus-string.rs

3 lines
87 B
Rust

// error-pattern:applying unary minus to non-numeric type `str`
fn main() { -"foo"; }