]> git.lizzy.rs Git - rust.git/blob - src/test/ui/non-copyable-void.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / non-copyable-void.stderr
1 error[E0599]: no method named `clone` found for enum `libc::c_void` in the current scope
2   --> $DIR/non-copyable-void.rs:11:23
3    |
4 LL |         let _z = (*y).clone();
5    |                       ^^^^^ method not found in `libc::c_void`
6    | 
7   ::: $SRC_DIR/core/src/clone.rs:LL:COL
8    |
9 LL |     fn clone(&self) -> Self;
10    |        -----
11    |        |
12    |        the method is available for `std::sync::Arc<libc::c_void>` here
13    |        the method is available for `std::rc::Rc<libc::c_void>` here
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0599`.