diff --git a/tests/ui/unconditional-recursion.rs b/tests/ui/unconditional-recursion.rs index 9e406e8..035b15e 100644 --- a/tests/ui/unconditional-recursion.rs +++ b/tests/ui/unconditional-recursion.rs @@ -5,5 +5,5 @@ use thiserror::Error; pub struct Error; fn main() { - @//fail + __FAIL__; } diff --git a/tests/ui/unconditional-recursion.stderr b/tests/ui/unconditional-recursion.stderr index 72ee5dc..568e891 100644 --- a/tests/ui/unconditional-recursion.stderr +++ b/tests/ui/unconditional-recursion.stderr @@ -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