rust/tests/ui/return/dont-suggest-through-inner-const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
157 B
Rust
Raw Normal View History

const fn f() -> usize {
//~^ ERROR mismatched types
const FIELD: usize = loop {
0
//~^ ERROR mismatched types
};
}
fn main() {}