]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27008.rs
Auto merge of #57118 - Zoxc:query-stats, r=wesleywiser
[rust.git] / src / test / ui / issues / issue-27008.rs
1 struct S;
2
3 fn main() {
4     let b = [0; S];
5     //~^ ERROR mismatched types
6     //~| expected type `usize`
7     //~| found type `S`
8     //~| expected usize, found struct `S`
9 }