summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-27008.rs
blob: adf8e779e0a043a58a9ace980b98b076be84bf50 (plain)
1
2
3
4
5
6
7
struct S;

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