Closed
Description
Test code:
#![feature(const_generics)]
use std::mem::MaybeUninit;
#[repr(transparent)]
pub struct OsThreadStack<const N: usize>(MaybeUninit<[u64; N]>);
fn main() {
}
It produced error:
error: internal compiler error: src/librustc/ty/sty.rs:2311: expected constant usize, got Const {
ty: usize,
val: Param(
N/#0,
),
}
Playground version: rustc 1.37.0-nightly (2019-05-29 37d001e)