rust/tests/ui/minus-string.rs
2023-01-11 09:32:08 +00:00

4 lines
101 B
Rust

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