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

4 lines
88 B
Rust

// error-pattern:cannot apply unary operator `-` to type `~str`
fn main() { -~"foo"; }