summary refs log tree commit diff
path: root/src/test/compile-fail/minus-string.rs
blob: 27ed51852a4d06614f3801d185e4991f5829c909 (plain)
1
2
3
// error-pattern:cannot apply unary operator `-` to type `str`

fn main() { -"foo"; }