]> git.lizzy.rs Git - rust.git/blob - tests/ui/minus-string.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / minus-string.rs
1 // error-pattern:cannot apply unary operator `-` to type `String`
2
3 fn main() { -"foo".to_string(); }