Skip to content

regression: generic args in patterns require the turbofish syntax #115780

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum
[INFO] [stdout] error: generic args in patterns require the turbofish syntax
[INFO] [stdout]    --> src/lib.rs:142:16
[INFO] [stdout]     |
[INFO] [stdout] 142 |             ret<TCon> (Clone::clone(x_val), Clone::clone(y_val));
[INFO] [stdout]     |                ^
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/mdo.rs:19:9
[INFO] [stdout]     |
[INFO] [stdout] 19  |         $p: pat =<< $e: expr ; $( $t: tt )*
[INFO] [stdout]     |         ------- while parsing argument for this `pat` macro fragment
[INFO] [stdout]     |
[INFO] [stdout] help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
[INFO] [stdout]     |
[INFO] [stdout] 142 |             ret::<TCon> (Clone::clone(x_val), Clone::clone(y_val));
[INFO] [stdout]     |                ++
[INFO] [stdout] 
[INFO] [stdout] 

https://crater-reports.s3.amazonaws.com/beta-1.73-1.2/beta-2023-09-10/reg/haskell_bits-0.3.0/log.txt

Metadata

Metadata

Assignees

Labels

A-parserArea: The lexing & parsing of Rust source code to an ASTP-highHigh priorityS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions