blob: 5ae6afa7b17e274255daa5e811637a9c99fb7236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
warning: not reporting region error due to nll
--> $DIR/E0621-does-not-trigger-for-closures.rs:25:5
|
LL | invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
| ^^^^^^
error: free region `` does not outlive free region `'_#2r`
--> $DIR/E0621-does-not-trigger-for-closures.rs:25:26
|
LL | invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
| ^^^^^
error: aborting due to previous error
|