rust/tests/ui/minus-string.rs
2024-02-16 20:02:50 +00:00

4 lines
102 B
Rust

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