File: non_clonable_second.stderr

package info (click to toggle)
rust-rhai-codegen 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 888 kB
  • sloc: makefile: 2
file content (19 lines) | stat: -rw-r--r-- 782 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
  --> ui_tests/non_clonable_second.rs:12:27
   |
12 | pub fn test_fn(a: u32, b: NonClonable) -> bool {
   |                           ^^^^^^^^^^^
   |                           |
   |                           the trait `Clone` is not implemented for `NonClonable`
   |                           required by a bound introduced by this call
   |
note: required by a bound in `rhai::Dynamic::cast`
  --> $WORKSPACE/src/types/dynamic.rs
   |
   |     pub fn cast<T: Any + Clone>(self) -> T {
   |                          ^^^^^ required by this bound in `Dynamic::cast`
help: consider annotating `NonClonable` with `#[derive(Clone)]`
   |
4    + #[derive(Clone)]
5    | struct NonClonable {
     |