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

5 lines
88 B
Rust
Raw Normal View History

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