File: unique_ptr_as_mut.stderr

package info (click to toggle)
rust-cxx 1.0.141-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (7 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
error[E0596]: cannot borrow data in dereference of `UniquePtr<ffi::Opaque>` as mutable
  --> tests/ui/unique_ptr_as_mut.rs:22:31
   |
22 |     let _: &mut ffi::Opaque = &mut opaque;
   |                               ^^^^^^^^^^^ cannot borrow as mutable
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `UniquePtr<ffi::Opaque>`