dont ICE on ConstEvaluatable predicates

This commit is contained in:
Ellen 2021-06-12 09:56:25 +01:00
parent b84ffce1aa
commit 00a5ec1375
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
#![crate_name = "foo"]
#![feature(const_evaluatable_checked, const_generics)]
#![allow(incomplete_features)]
// make sure that `ConstEvaluatable` predicates dont cause rustdoc to ICE #77647
pub struct Ice<const N: usize> where [(); N + 1]:;