Use ui test syntax that does not interfere with rustfmt

This commit is contained in:
David Tolnay 2024-11-10 23:50:37 -08:00
parent 1a3cf4b3c1
commit fa5d58cd00
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
4 changed files with 8 additions and 8 deletions

View File

@ -71,5 +71,5 @@ enum E3 {
} }
fn main() { fn main() {
@//fail __FAIL__;
} }

View File

@ -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 --> tests/ui/conflict/alias-enum.rs:74:5
| |
74 | @//fail 74 | __FAIL__;
| ^ expected expression | ^^^^^^^^ not found in this scope
warning: unreachable pattern warning: unreachable pattern
--> tests/ui/conflict/alias-enum.rs:13:9 --> tests/ui/conflict/alias-enum.rs:13:9

View File

@ -35,5 +35,5 @@ struct S3 {
} }
fn main() { fn main() {
@//fail __FAIL__;
} }

View File

@ -1,8 +1,8 @@
error: expected expression, found `@` error[E0425]: cannot find value `__FAIL__` in this scope
--> tests/ui/conflict/alias.rs:38:5 --> tests/ui/conflict/alias.rs:38:5
| |
38 | @//fail 38 | __FAIL__;
| ^ expected expression | ^^^^^^^^ not found in this scope
warning: unreachable pattern warning: unreachable pattern
--> tests/ui/conflict/alias.rs:10:5 --> tests/ui/conflict/alias.rs:10:5