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

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