Skip to content

Commit

Permalink
Use ui test syntax that does not interfere with rustfmt
Browse files Browse the repository at this point in the history
dtolnay committed Nov 11, 2024
1 parent 1a3cf4b commit fa5d58c
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test_suite/tests/ui/conflict/alias-enum.rs
Original file line number Diff line number Diff line change
@@ -71,5 +71,5 @@ enum E3 {
}

fn main() {
@//fail
__FAIL__;
}
6 changes: 3 additions & 3 deletions test_suite/tests/ui/conflict/alias-enum.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: expected expression, found `@`
error[E0425]: cannot find value `__FAIL__` in this scope
--> tests/ui/conflict/alias-enum.rs:74:5
|
74 | @//fail
| ^ expected expression
74 | __FAIL__;
| ^^^^^^^^ not found in this scope

warning: unreachable pattern
--> tests/ui/conflict/alias-enum.rs:13:9
2 changes: 1 addition & 1 deletion test_suite/tests/ui/conflict/alias.rs
Original file line number Diff line number Diff line change
@@ -35,5 +35,5 @@ struct S3 {
}

fn main() {
@//fail
__FAIL__;
}
6 changes: 3 additions & 3 deletions test_suite/tests/ui/conflict/alias.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: expected expression, found `@`
error[E0425]: cannot find value `__FAIL__` in this scope
--> tests/ui/conflict/alias.rs:38:5
|
38 | @//fail
| ^ expected expression
38 | __FAIL__;
| ^^^^^^^^ not found in this scope

warning: unreachable pattern
--> tests/ui/conflict/alias.rs:10:5

0 comments on commit fa5d58c

Please sign in to comment.