| error: unexpected `...` |
| --> $DIR/recover-invalid-function-parameter-pattern-2.rs:3:6 |
| | |
| LL | fn f(...: u8) {} |
| | ^^^ not a valid pattern |
| | |
| help: for a rest pattern, use `..` instead of `...` |
| | |
| LL - fn f(...: u8) {} |
| LL + fn f(..: u8) {} |
| | |
| |
| error: missing pattern for `...` argument |
| --> $DIR/recover-invalid-function-parameter-pattern-2.rs:3:6 |
| | |
| LL | fn f(...: u8) {} |
| | ^^^ |
| | |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| = note: for more information, see issue #145544 <https://github.com/rust-lang/rust/issues/145544> |
| = note: `#[deny(varargs_without_pattern)]` (part of `#[deny(future_incompatible)]`) on by default |
| help: name the argument, or use `_` to continue ignoring it |
| | |
| LL | fn f(_: ...: u8) {} |
| | ++ |
| |
| error: aborting due to 2 previous errors |
| |
| Future incompatibility report: Future breakage diagnostic: |
| error: missing pattern for `...` argument |
| --> $DIR/recover-invalid-function-parameter-pattern-2.rs:3:6 |
| | |
| LL | fn f(...: u8) {} |
| | ^^^ |
| | |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| = note: for more information, see issue #145544 <https://github.com/rust-lang/rust/issues/145544> |
| = note: `#[deny(varargs_without_pattern)]` (part of `#[deny(future_incompatible)]`) on by default |
| help: name the argument, or use `_` to continue ignoring it |
| | |
| LL | fn f(_: ...: u8) {} |
| | ++ |
| |