about summary refs log tree commit diff
path: root/tests/ui/minus-string.rs
blob: 8d9b8d8bbf49e1c503dd0e525976cc102b666f4d (plain)
1
2
3
//@ error-pattern:cannot apply unary operator `-` to type `String`

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