blob: 6b10c5404944d743beea80c609c93a775e8722c7 (
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
fn combinator<T, const S: usize>() -> [T; S] {}
//[cfail1]~^ ERROR mismatched types
fn main() {
combinator().into_iter();
//[cfail1]~^ ERROR type annotations needed
}
|