rust/src/test/ui/minus-string.rs
2018-12-25 21:08:33 -07:00

4 lines
114 B
Rust

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