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" -> ""
|
2023-07-30 02:49:57 -05:00
|
|
|
// normalize-stderr-test "\n[ ]*\n" -> ""
|
2023-05-05 15:42:51 -05:00
|
|
|
// normalize-stderr-test "compiler/.*: projection" -> "projection"
|
2023-05-21 13:27:01 -05:00
|
|
|
// normalize-stderr-test ".*omitted \d{1,} frame.*\n" -> ""
|
2023-07-30 02:49:57 -05:00
|
|
|
// normalize-stderr-test "error: [\s\n]*query stack during panic:\n" -> ""
|
|
|
|
// this should run-pass
|
2023-05-05 15:42:51 -05:00
|
|
|
|
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 _ = || {
|
|
|
|
let _: [u8; inner::<'a>()];
|
|
|
|
let _ = [0; inner::<'a>()];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test();
|
|
|
|
}
|