Skip to content

Commit ad2f20b

Browse files
committed
Use ui test syntax that does not interfere with rustfmt
1 parent 15fd26e commit ad2f20b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ui/unconditional-recursion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ use thiserror::Error;
55
pub struct Error;
66

77
fn main() {
8-
@//fail
8+
__FAIL__;
99
}

tests/ui/unconditional-recursion.stderr

Lines changed: 3 additions & 3 deletions
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/unconditional-recursion.rs:8:5
33
|
4-
8 | @//fail
5-
| ^ expected expression
4+
8 | __FAIL__;
5+
| ^^^^^^^^ not found in this scope
66

77
warning: function cannot return without recursing
88
--> tests/ui/unconditional-recursion.rs:4:9

0 commit comments

Comments
 (0)