rust/tests/ui/minus-string.rs

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

4 lines
102 B
Rust
Raw Normal View History

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