Skip to content

Commit fa5d58c

Browse files
committed
Use ui test syntax that does not interfere with rustfmt
1 parent 1a3cf4b commit fa5d58c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

test_suite/tests/ui/conflict/alias-enum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ enum E3 {
7171
}
7272

7373
fn main() {
74-
@//fail
74+
__FAIL__;
7575
}

test_suite/tests/ui/conflict/alias-enum.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error: expected expression, found `@`
1+
error[E0425]: cannot find value `__FAIL__` in this scope
22
--> tests/ui/conflict/alias-enum.rs:74:5
33
|
4-
74 | @//fail
5-
| ^ expected expression
4+
74 | __FAIL__;
5+
| ^^^^^^^^ not found in this scope
66

77
warning: unreachable pattern
88
--> tests/ui/conflict/alias-enum.rs:13:9

test_suite/tests/ui/conflict/alias.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ struct S3 {
3535
}
3636

3737
fn main() {
38-
@//fail
38+
__FAIL__;
3939
}

test_suite/tests/ui/conflict/alias.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error: expected expression, found `@`
1+
error[E0425]: cannot find value `__FAIL__` in this scope
22
--> tests/ui/conflict/alias.rs:38:5
33
|
4-
38 | @//fail
5-
| ^ expected expression
4+
38 | __FAIL__;
5+
| ^^^^^^^^ not found in this scope
66

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

0 commit comments

Comments
 (0)