diff options
| author | Ellen <supbscripter@gmail.com> | 2021-06-12 09:56:25 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2021-06-12 09:56:25 +0100 |
| commit | 00a5ec13757b3830248f4822e5012ec304bf3647 (patch) | |
| tree | 226b1a560957d6f8446fcb351601dad4bb21f1ef /src/test/rustdoc | |
| parent | b84ffce1aa806d1d53c2588fa59ecc00474b66ce (diff) | |
| download | rust-00a5ec13757b3830248f4822e5012ec304bf3647.tar.gz rust-00a5ec13757b3830248f4822e5012ec304bf3647.zip | |
dont ICE on `ConstEvaluatable` predicates
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/const-generics/const-evaluatable-checked.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc/const-generics/const-evaluatable-checked.rs b/src/test/rustdoc/const-generics/const-evaluatable-checked.rs new file mode 100644 index 00000000000..2ba55559181 --- /dev/null +++ b/src/test/rustdoc/const-generics/const-evaluatable-checked.rs @@ -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]:; \ No newline at end of file |
