Do not suggest angle brackets when there are no type arguments
This commit is contained in:
parent
d37a6d83e1
commit
2ab6cefccf
14 changed files with 45 additions and 48 deletions
|
|
@ -1,10 +1,10 @@
|
|||
error[E0214]: parenthesized parameters may only be used with a trait
|
||||
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
|
||||
--> $DIR/E0214.rs:2:15
|
||||
|
|
||||
LL | let v: Vec(&str) = vec!["foo"];
|
||||
| ^^^^^^
|
||||
| |
|
||||
| only traits may use parentheses
|
||||
| only `Fn` traits may use parentheses
|
||||
| help: use angle brackets instead: `<&str>`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue