mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-08-27 20:00:03 -04:00
4 lines
101 B
Rust
4 lines
101 B
Rust
// error-pattern:cannot apply unary operator `-` to type `String`
|
|
|
|
fn main() { -"foo".to_string(); }
|