]> git.proxmox.com Git - rustc.git/blob - src/test/incremental/const-generics/issue-64087.rs
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / incremental / const-generics / issue-64087.rs
1 // revisions:cfail1
2 #![feature(const_generics)]
3 //[cfail1]~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
4
5 fn combinator<T, const S: usize>() -> [T; S] {}
6 //[cfail1]~^ ERROR mismatched types
7
8 fn main() {
9 combinator().into_iter();
10 //[cfail1]~^ ERROR type annotations needed
11 }