Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/consteval/tests.rs')
| -rw-r--r-- | crates/hir-ty/src/consteval/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-ty/src/consteval/tests.rs b/crates/hir-ty/src/consteval/tests.rs index 9199663be1..d1ffd5046c 100644 --- a/crates/hir-ty/src/consteval/tests.rs +++ b/crates/hir-ty/src/consteval/tests.rs @@ -2828,7 +2828,7 @@ fn unsized_local() { #[test] fn recursive_adt() { - check_answer( + check_fail( r#" //- minicore: coerce_unsized, index, slice pub enum TagTree { @@ -2849,6 +2849,6 @@ fn recursive_adt() { TAG_TREE }; "#, - |b, _| assert_eq!(b[0] % 8, 0), + |e| matches!(e, ConstEvalError::MirEvalError(MirEvalError::StackOverflow)), ); } |