summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/nested-closures-regions.stderr
blob: 381aadb1564cc1c95f7a40f31f7f8df2363175ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
note: external requirements
  --> $DIR/nested-closures-regions.rs:8:24
   |
LL |     for<'a> || -> () { for<'c> |_: &'a ()| -> () {}; };
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: defining type: main::{closure#0}::{closure#0} with closure substs [
               i8,
               extern "rust-call" fn((&(),)),
               (),
           ]
   = note: late-bound region is '?4
   = note: late-bound region is '?2
   = note: number of external vids: 3
   = note: where '?1: '?2
   = note: where '?2: '?1

note: no external requirements
  --> $DIR/nested-closures-regions.rs:8:5
   |
LL |     for<'a> || -> () { for<'c> |_: &'a ()| -> () {}; };
   |     ^^^^^^^^^^^^^^^^
   |
   = note: defining type: main::{closure#0} with closure substs [
               i8,
               extern "rust-call" fn(()),
               (),
           ]
   = note: late-bound region is '?2

note: no external requirements
  --> $DIR/nested-closures-regions.rs:7:1
   |
LL | fn main() {
   | ^^^^^^^^^
   |
   = note: defining type: main