mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
14 lines
250 B
Rust
14 lines
250 B
Rust
//@ check-pass
|
|
#![feature(generic_const_exprs)]
|
|
#![allow(incomplete_features)]
|
|
|
|
fn two_args<const N: usize, const M: usize>() -> [u8; M + 2] {
|
|
[0; M + 2]
|
|
}
|
|
|
|
fn yay<const N: usize>() -> [u8; 4] {
|
|
two_args::<N, 2>() // no lint
|
|
}
|
|
|
|
fn main() {}
|