Sign in
rust
/
rust
/
8eb7c58dbb7b32701af113bc58722d0d1fefb1eb
/
.
/
src
/
test
/
ui
/
minus-string.rs
blob: 946c587ce43b45331ec13daab0ef29493d8e2d4e [
file
]
// error-pattern:cannot apply unary operator `-` to type `std::string::String`
fn
main
()
{
-
"foo"
.
to_string
();
}