summaryrefslogtreecommitdiffstats
path: root/tests/incremental/issue-108481-feed-eval-always.rs
blob: 8f346a7207e7e97278be245075fabd2f929551c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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> {}