]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique-object-noncopyable.stderr
Deduplicate information in E0599
[rust.git] / src / test / ui / unique-object-noncopyable.stderr
1 error[E0599]: no method named `clone` found for struct `std::boxed::Box<dyn Foo>` in the current scope
2   --> $DIR/unique-object-noncopyable.rs:24:16
3    |
4 LL | trait Foo {
5    | ---------
6    | |
7    | the method `clone` exists but this trait doesn't satisfy the bound `dyn Foo: std::clone::Clone`
8    | the method `clone` exists but this trait doesn't satisfy the bound `dyn Foo: std::marker::Sized`
9 ...
10 LL |     let _z = y.clone();
11    |                ^^^^^ method not found in `std::boxed::Box<dyn Foo>`
12    |
13    = help: items from traits can only be used if the trait is implemented and in scope
14    = note: the following trait defines an item `clone`, perhaps you need to implement it:
15            candidate #1: `std::clone::Clone`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0599`.