Skip to content

Commit 5b5dec3

Browse files
committed
add test for rust-lang#97725
Fixes rust-lang#97725
1 parent 1447f9d commit 5b5dec3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/ui/const-generics/occurs-check/unify-fixpoint.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// -Zunstable-options added as test for ICE #97725 (left == right)`
2+
// left: `Binder(<[u8; _] as std::default::Default>, [])`,
3+
// right: `Binder(<[u8; 4] as std::default::Default>, [])
4+
5+
//@ compile-flags: -Zunstable-options
16
//@ check-pass
27
#![feature(generic_const_exprs)] //~ WARN the feature `generic_const_exprs` is incomplete
38

tests/ui/const-generics/occurs-check/unify-fixpoint.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
2-
--> $DIR/unify-fixpoint.rs:2:12
2+
--> $DIR/unify-fixpoint.rs:7:12
33
|
44
LL | #![feature(generic_const_exprs)]
55
| ^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)