8ce8c42e0b
When a suggestion part is for already present code, do not highlight it. If after that there are no highlights left, do not show the suggestion at all. Fix clippy lint suggestion incorrectly treated as `span_help`.
47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
error: generic parameters without surrounding angle brackets
|
|
--> $DIR/recover-missing-turbofish-surrounding-angle-braket.rs:2:48
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::Vec<_>();
|
|
| ^^^^^^
|
|
|
|
|
help: surround the type parameters with angle brackets
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<_>>();
|
|
| + +
|
|
|
|
error: generic parameters without surrounding angle brackets
|
|
--> $DIR/recover-missing-turbofish-surrounding-angle-braket.rs:4:48
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::Vec<_>>>>();
|
|
| ^^^^^^
|
|
|
|
|
help: surround the type parameters with angle brackets
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<_>>();
|
|
| + ~
|
|
|
|
error: generic parameters without surrounding angle brackets
|
|
--> $DIR/recover-missing-turbofish-surrounding-angle-braket.rs:6:48
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::Vec<_>>>();
|
|
| ^^^^^^
|
|
|
|
|
help: surround the type parameters with angle brackets
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<_>>();
|
|
| + ~
|
|
|
|
error: generic parameters without surrounding angle brackets
|
|
--> $DIR/recover-missing-turbofish-surrounding-angle-braket.rs:8:48
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::Vec<_>>();
|
|
| ^^^^^^
|
|
|
|
|
help: surround the type parameters with angle brackets
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<_>>();
|
|
| +
|
|
|
|
error: aborting due to 4 previous errors
|
|
|