rust/tests/ui/closures/issue-90871.rs

8 lines
162 B
Rust
Raw Normal View History

#![feature(type_ascription)]
2022-08-03 04:51:21 -05:00
fn main() {
type_ascribe!(2, n([u8; || 1]))
2022-08-03 04:51:21 -05:00
//~^ ERROR cannot find type `n` in this scope
//~| ERROR mismatched types
}