rust/tests/rustdoc/const-generics/generic_const_exprs.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
321 B
Rust
Raw Normal View History

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