diff options
| author | Ralf Jung <post@ralfj.de> | 2023-04-14 14:28:19 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-04-14 14:28:19 +0200 |
| commit | 06707ab30f06d189636cb219cc689f19eda9a2bb (patch) | |
| tree | 5017bdd02725ad3658357cb34f05dbdb257c6fe1 /tests/incremental | |
| parent | 2386cd7b22174f277d5bd9ad802bcffc3b902ab6 (diff) | |
| parent | e3de409aaa592a36548a9f453688c3e877b5caa1 (diff) | |
| download | rust-06707ab30f06d189636cb219cc689f19eda9a2bb.tar.gz rust-06707ab30f06d189636cb219cc689f19eda9a2bb.zip | |
Merge from rustc
Diffstat (limited to 'tests/incremental')
| -rw-r--r-- | tests/incremental/issue-108481-feed-eval-always.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/incremental/issue-108481-feed-eval-always.rs b/tests/incremental/issue-108481-feed-eval-always.rs new file mode 100644 index 00000000000..8f346a7207e --- /dev/null +++ b/tests/incremental/issue-108481-feed-eval-always.rs @@ -0,0 +1,16 @@ +// revisions: cpass1 cpass2 + +#![crate_type = "rlib"] + +use std::fmt::Debug; + +// MCVE kindly provided by Nilstrieb at +// https://github.com/rust-lang/rust/issues/108481#issuecomment-1493080185 + +#[derive(Debug)] +pub struct ConstGeneric<const CHUNK_SIZE: usize> { + _p: [(); CHUNK_SIZE], +} + +#[cfg(cpass1)] +impl<const CHUNK_SIZE: usize> ConstGeneric<CHUNK_SIZE> {} |
