aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/unsafe-call.stderr
blob: 911a58ef748bee6d5b0bb1278b879404f99516b7 (plain)
1
2
3
4
5
6
7
8
9
10
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
   |
   = note: consult the function's documentation for information on how to avoid undefined behavior