aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/unsafe-call.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pinned_drop/unsafe-call.stderr')
-rw-r--r--tests/ui/pinned_drop/unsafe-call.stderr3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/pinned_drop/unsafe-call.stderr b/tests/ui/pinned_drop/unsafe-call.stderr
index 9f7dd44..911a58e 100644
--- a/tests/ui/pinned_drop/unsafe-call.stderr
+++ b/tests/ui/pinned_drop/unsafe-call.stderr
@@ -1,6 +1,9 @@
error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
--> tests/ui/pinned_drop/unsafe-call.rs:14:9
|
+11 | #[pinned_drop]
+ | -------------- items do not inherit unsafety from separate enclosing items
+...
14 | self.project().f.get_unchecked_mut(); //~ ERROR call to unsafe function is unsafe and requires unsafe function or block [E0133]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
|