]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/const-generics/issue-64087.rs
Auto merge of #100581 - joboet:sync_rwlock_everywhere, r=thomcc
[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 }