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

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

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
}