about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2018-06-13 14:51:53 -0300
committerSantiago Pastorino <spastorino@gmail.com>2018-06-19 21:21:50 -0300
commitf4fc43cb20a09e5db76f355596205c48cd8b4615 (patch)
tree58f4f53d1d1380eb4d741d4475bd52a370e1e9dc /src/test/ui/error-codes
parentf28c7aef7fbff1909c2d0257186cd7a5f0c6aa4b (diff)
downloadrust-f4fc43cb20a09e5db76f355596205c48cd8b4615.tar.gz
rust-f4fc43cb20a09e5db76f355596205c48cd8b4615.zip
Suggest that values are dropped in the opposite order they are defined
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0597.nll.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0597.nll.stderr b/src/test/ui/error-codes/E0597.nll.stderr
index 459de1bc00b..172db9ced82 100644
--- a/src/test/ui/error-codes/E0597.nll.stderr
+++ b/src/test/ui/error-codes/E0597.nll.stderr
@@ -9,6 +9,8 @@ LL | }
    | |
    | borrowed value only lives until here
    | borrow later used here, when `x` is dropped
+   |
+   = note: values in a scope are dropped in the opposite order they are defined
 
 error: aborting due to previous error