summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/issue-52443.rs
blob: 4669d7c1a35d602d7777acb19c971f8ff00e4740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    [(); & { loop { continue } } ]; //~ ERROR mismatched types

    [(); loop { break }]; //~ ERROR mismatched types

    [(); {while true {break}; 0}];
    //~^ WARN denote infinite loops with

    [(); { for _ in 0usize.. {}; 0}];
    //~^ ERROR `for` is not allowed in a `const`
    //~| ERROR cannot convert
    //~| ERROR mutable references
    //~| ERROR cannot call
    //~| ERROR the trait bound
}