]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/issue28498-reject-lifetime-param.nll.stderr
Suggest that values are dropped in the opposite order they are defined
[rust.git] / src / test / ui / span / issue28498-reject-lifetime-param.nll.stderr
index 25708219bd1be88ddd1f213636c34c523fd74d32..ce9e75b44831874efa2cb710545b4d6490ffc134 100644 (file)
@@ -9,6 +9,8 @@ LL | }
    | |
    | borrowed value only lives until here
    | borrow later used here, when `foo1` is dropped
+   |
+   = note: values in a scope are dropped in the opposite order they are defined
 
 error: aborting due to previous error