summary refs log tree commit diff
path: root/src/test/incremental/const-generics/issue-64087.rs
blob: b3c12fbb6e81327e5918ba8a4438f7af60fcfe02 (plain)
1
2
3
4
5
6
7
8
9
10
11
// revisions:cfail1
#![feature(const_generics)]
//[cfail1]~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

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

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