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
  • Loading branch information
dtolnay committed Nov 11, 2024
1 parent 15fd26e commit ad2f20b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/ui/unconditional-recursion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ use thiserror::Error;
pub struct Error;

fn main() {
@//fail
__FAIL__;
}
6 changes: 3 additions & 3 deletions tests/ui/unconditional-recursion.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/unconditional-recursion.rs:8:5
|
8 | @//fail
| ^ expected expression
8 | __FAIL__;
| ^^^^^^^^ not found in this scope

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

0 comments on commit ad2f20b

Please sign in to comment.