Files
rust/tests/ui/minus-string.rs

2 lines
93 B
Rust
Raw Normal View History

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