diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-07-03 11:38:09 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-07-04 05:09:33 -0400 |
| commit | 727f01700b074181bddf49caa07ac5e34455680d (patch) | |
| tree | a41db880441da4f99cdc24306f02950d3fc05d0a /src/test/ui/error-codes | |
| parent | fa02d68eecbb3ff253c4e6f2f7dcc171c7c25283 (diff) | |
| download | rust-727f01700b074181bddf49caa07ac5e34455680d.tar.gz rust-727f01700b074181bddf49caa07ac5e34455680d.zip | |
write code to extract region names and emit new style message
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0621-does-not-trigger-for-closures.nll.stderr | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.nll.stderr b/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.nll.stderr index 5ae6afa7b17..9c7e3db67a6 100644 --- a/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.nll.stderr +++ b/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.nll.stderr @@ -4,11 +4,15 @@ warning: not reporting region error due to nll LL | invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495 | ^^^^^^ -error: free region `` does not outlive free region `'_#2r` +error: unsatisfied lifetime constraints --> $DIR/E0621-does-not-trigger-for-closures.rs:25:26 | LL | invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495 - | ^^^^^ + | ----------^^^^^----------------- + | | | | + | | | free region requires that `'1` must outlive `'2` + | | lifetime `'1` appears in this argument + | lifetime `'2` appears in return type error: aborting due to previous error |
