rust/src/test/rustdoc/const-generics/const-evaluatable-checked.rs

8 lines
357 B
Rust
Raw Normal View History

#![crate_name = "foo"]
#![feature(generic_const_exprs, const_generics)]
#![allow(incomplete_features)]
// make sure that `ConstEvaluatable` predicates dont cause rustdoc to ICE #77647
2021-06-12 15:35:18 +00:00
// @has foo/struct.Ice.html '//pre[@class="rust struct"]' \
// 'pub struct Ice<const N: usize> where [(); N + 1]: ;'
2021-06-12 09:18:51 +00:00
pub struct Ice<const N: usize> where [(); N + 1]:;