7 lines
142 B
Rust
7 lines
142 B
Rust
// error-pattern the type `[u8;
|
|
|
|
fn main() {
|
|
let data: [u8; std::usize::MAX] = [42; std::usize::MAX];
|
|
assert_eq!(data.len(), 1024);
|
|
}
|