rust/tests/compile-fail/repeat.rs

7 lines
142 B
Rust
Raw Normal View History

2018-05-09 15:54:45 +02:00
// error-pattern the type `[u8;
fn main() {
let data: [u8; std::usize::MAX] = [42; std::usize::MAX];
assert_eq!(data.len(), 1024);
}