• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0133]: call to unsafe function `Pin::<&'a mut T>::get_unchecked_mut` is unsafe and requires unsafe function or block
2  --> tests/ui/pinned_drop/unsafe-call.rs:16:9
3   |
413 | #[pinned_drop]
5   | -------------- items do not inherit unsafety from separate enclosing items
6...
716 |         self.project().f.get_unchecked_mut(); //~ ERROR call to unsafe function is unsafe and requires unsafe function or block [E0133]
8   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
9   |
10   = note: consult the function's documentation for information on how to avoid undefined behavior
11