blob: 56b88a426a1a8256623c64b31cd1091a7eae6c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// To avoid having to `or` gate `_` as an expr.
#![feature(generic_arg_infer)]
fn foo() -> [u8; _] {
//~^ ERROR the const placeholder `_` is not allowed within types on item signatures for generics
// FIXME(generic_arg_infer): this error message should say in the return type or sth like that.
[0; 3]
}
fn main() {
foo();
}
|