summaryrefslogtreecommitdiffstats
path: root/tests/ui/minus-string.rs
blob: 018f0ef9ac56c37068bdddef3b7635ab779eee7b (plain)
1
2
3
// error-pattern:cannot apply unary operator `-` to type `String`

fn main() { -"foo".to_string(); }