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

4 lines
88 B
Rust
Raw Normal View History

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