mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
25 lines
658 B
Rust
25 lines
658 B
Rust
//! This test checks that external macros don't hide
|
|
//! the const eval timeout lint and then subsequently
|
|
//! ICE.
|
|
|
|
// compile-flags: --crate-type=lib -Ztiny-const-eval-limit
|
|
// error-pattern: constant evaluation is taking a long time
|
|
|
|
static ROOK_ATTACKS_TABLE: () = {
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
0_u64.count_ones();
|
|
};
|