Skip to content

Commit

Permalink
add test for #97725
Browse files Browse the repository at this point in the history
Fixes #97725
  • Loading branch information
matthiaskrgr committed Mar 22, 2024
1 parent 1447f9d commit 5b5dec3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/ui/const-generics/occurs-check/unify-fixpoint.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// -Zunstable-options added as test for ICE #97725 (left == right)`
// left: `Binder(<[u8; _] as std::default::Default>, [])`,
// right: `Binder(<[u8; 4] as std::default::Default>, [])

//@ compile-flags: -Zunstable-options
//@ check-pass
#![feature(generic_const_exprs)] //~ WARN the feature `generic_const_exprs` is incomplete

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/const-generics/occurs-check/unify-fixpoint.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/unify-fixpoint.rs:2:12
--> $DIR/unify-fixpoint.rs:7:12
|
LL | #![feature(generic_const_exprs)]
| ^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 5b5dec3

Please sign in to comment.