summary refs log tree commit diff
path: root/src/test/compile-fail/minus-string.rs
blob: f77756942b188c86a0e57c48edfb8cf4d8013237 (plain)
1
2
3
// error-pattern:applying unary minus to non-numeric type `str`

fn main() { -"foo"; }