diff options
Diffstat (limited to 'tests/ui/span/regionck-unboxed-closure-lifetimes.stderr')
-rw-r--r-- | tests/ui/span/regionck-unboxed-closure-lifetimes.stderr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/span/regionck-unboxed-closure-lifetimes.stderr b/tests/ui/span/regionck-unboxed-closure-lifetimes.stderr index 0b985de60..fb3fad6ae 100644 --- a/tests/ui/span/regionck-unboxed-closure-lifetimes.stderr +++ b/tests/ui/span/regionck-unboxed-closure-lifetimes.stderr @@ -1,6 +1,8 @@ error[E0597]: `c` does not live long enough --> $DIR/regionck-unboxed-closure-lifetimes.rs:8:21 | +LL | let c = 1; + | - binding `c` declared here LL | let c_ref = &c; | ^^ borrowed value does not live long enough ... |