summaryrefslogtreecommitdiffstats
path: root/tests/incremental/const-generics/issue-64087.rs
blob: 81c813531bd53d6bd6b09ff164d466e3cb2f31cb (plain)
1
2
3
4
5
6
7
8
9
// revisions:cfail1

fn combinator<T, const S: usize>() -> [T; S] {}
//[cfail1]~^ ERROR mismatched types

fn main() {
    combinator().into_iter();
    //[cfail1]~^ ERROR type annotations needed
}