2023-05-05 15:42:51 -05:00
|
|
|
// failure-status: 101
|
|
|
|
// known-bug: unknown
|
|
|
|
// error-pattern:internal compiler error
|
|
|
|
// normalize-stderr-test "internal compiler error.*" -> ""
|
|
|
|
// normalize-stderr-test "DefId\([^)]*\)" -> "..."
|
|
|
|
// normalize-stderr-test "\nerror: internal compiler error.*\n\n" -> ""
|
|
|
|
// normalize-stderr-test "note:.*unexpectedly panicked.*\n\n" -> ""
|
|
|
|
// normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
|
|
|
|
// normalize-stderr-test "note: compiler flags.*\n\n" -> ""
|
|
|
|
// normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
|
|
|
|
// normalize-stderr-test "thread.*panicked.*\n" -> ""
|
|
|
|
// normalize-stderr-test "stack backtrace:\n" -> ""
|
|
|
|
// normalize-stderr-test "\s\d{1,}: .*\n" -> ""
|
|
|
|
// normalize-stderr-test "\s at .*\n" -> ""
|
|
|
|
// normalize-stderr-test ".*note: Some details.*\n" -> ""
|
|
|
|
// normalize-stderr-test "\n\n[ ]*\n" -> ""
|
|
|
|
// normalize-stderr-test "compiler/.*: projection" -> "projection"
|
|
|
|
|
2021-08-27 11:04:57 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
2020-11-22 06:57:11 -06:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
const fn inner<'a>() -> usize where &'a (): Sized {
|
|
|
|
3
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test<'a>() {
|
|
|
|
let _: [u8; inner::<'a>()];
|
|
|
|
let _ = [0; inner::<'a>()];
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test();
|
|
|
|
}
|