rust/tests/ui/minus-string.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

2 lines
93 B
Rust
Raw Normal View History

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