1
Fork 0
rust/tests/ui/issues/issue-27008.rs
2025-04-08 23:06:31 +03:00

7 lines
119 B
Rust

struct S;
fn main() {
let b = [0; S];
//~^ ERROR mismatched types
//~| NOTE expected `usize`, found `S`
}