mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
692bc344d5
Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
14 lines
297 B
Plaintext
14 lines
297 B
Plaintext
error: top-level or-patterns are not allowed in function parameters
|
|
--> $DIR/fn-param-wrap-parens.rs:13:9
|
|
|
|
|
LL | fn fun1(A | B: E) {}
|
|
| ^^^^^
|
|
|
|
|
help: wrap the pattern in parentheses
|
|
|
|
|
LL | fn fun1((A | B): E) {}
|
|
| + +
|
|
|
|
error: aborting due to 1 previous error
|
|
|