]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/const-generics/issue-64087.rs
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / incremental / const-generics / issue-64087.rs
1 // revisions:cfail1
2
3 fn combinator<T, const S: usize>() -> [T; S] {}
4 //[cfail1]~^ ERROR mismatched types
5
6 fn main() {
7     combinator().into_iter();
8     //[cfail1]~^ ERROR type annotations needed
9 }