888262b337
The method `op_index` (which takes a single argument) is used for this. Issue #1520
4 lines
86 B
Rust
4 lines
86 B
Rust
// error-pattern:cannot apply unary operator `-` to type `str`
|
|
|
|
fn main() { -"foo"; }
|