about summary refs log tree commit diff
path: root/tests/ui/wf/range-expr-root-of-constant-issue-40749.rs
blob: 7871612dc8b753677b29b124a6c711ee6a61bef4 (plain)
1
2
3
4
5
6
7
fn main() {
    [0; ..10];
    //~^ ERROR mismatched types
    //~| NOTE expected type `usize`
    //~| NOTE found struct `RangeTo<{integer}>`
    //~| NOTE expected `usize`, found `RangeTo<{integer}>
}