rustc/tests/ui/minus-string.rs
2024-06-21 09:39:33 +02:00

4 lines
102 B
Rust

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