summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/fn-to-method-deeply-nested.rs
blob: 58ee3d6409a7e19ed0b1d7c5b83c64fa0b649cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() -> Result<(), ()> {
    a(b(c(d(e(
        //~^ ERROR cannot find function `a` in this scope
        //~| ERROR cannot find function `b` in this scope
        //~| ERROR cannot find function `c` in this scope
        //~| ERROR cannot find function `d` in this scope
        //~| ERROR cannot find function `e` in this scope
        z????????????????????????????????????????????????????????????????????????????????????????
        ?????????????????????????????????????????????????????????????????????????????????????????
        ??????????????????????????????????????????????????????????????????
        //~^^^ ERROR cannot find value `z` in this scope
    )))))
}