mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
26 lines
658 B
Rust
26 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();
|
|
};
|