summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-90871.rs
blob: 7ce061cd388c99602a40e9b62043fc9929372abe (plain)
1
2
3
4
5
6
7
#![feature(type_ascription)]

fn main() {
    type_ascribe!(2, n([u8; || 1]))
    //~^ ERROR cannot find type `n` in this scope
    //~| ERROR mismatched types
}