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.stderr7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/pinned_drop/unsafe-call.stderr b/tests/ui/pinned_drop/unsafe-call.stderr
new file mode 100644
index 0000000..4e8e00b
--- /dev/null
+++ b/tests/ui/pinned_drop/unsafe-call.stderr
@@ -0,0 +1,7 @@
+error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
+ --> $DIR/unsafe-call.rs:13:9
+ |
+13 | self.project().field.get_unchecked_mut(); //~ ERROR call to unsafe function is unsafe and requires unsafe function or block [E0133]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
+ |
+ = note: consult the function's documentation for information on how to avoid undefined behavior