Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix wording; we're replacing coma with a bar
  • Loading branch information
karolzwolak committed Oct 2, 2025
commit 5a8f963426c72c5bd306b2620a6c148b720217d0
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ run-rustfix

// Regression test for issue #143330.
// Ensure we suggest to replace only the intended bar with a comma, not all bars in the pattern.
// Ensure we suggest to replace only the intended coma with a bar, not all commas in the pattern.

fn main() {
struct Foo { x: i32, ch: char }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ run-rustfix

// Regression test for issue #143330.
// Ensure we suggest to replace only the intended bar with a comma, not all bars in the pattern.
// Ensure we suggest to replace only the intended coma with a bar, not all commas in the pattern.

fn main() {
struct Foo { x: i32, ch: char }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: unexpected `,` in pattern
--> $DIR/only-replace-intended-bar-not-all-in-pattern.rs:12:30
--> $DIR/only-replace-intended-coma-not-all-in-pattern.rs:12:30
|
LL | Foo { x: 2, ch: ',' }, Foo { x: 3, ch: '@' } => (),
| ^
Expand Down