]> git.proxmox.com Git - rustc.git/blame - src/test/ui/kindck/kindck-inherited-copy-bound.curr.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / kindck / kindck-inherited-copy-bound.curr.stderr
CommitLineData
60c5eb7d 1error[E0277]: the trait bound `std::boxed::Box<{integer}>: Foo` is not satisfied
e74abb32 2 --> $DIR/kindck-inherited-copy-bound.rs:21:16
b7449926 3 |
e1599b0c
XL
4LL | fn take_param<T:Foo>(foo: &T) { }
5 | ---------- --- required by this bound in `take_param`
6...
532ac7d7 7LL | take_param(&x);
e1599b0c 8 | ^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<{integer}>`
b7449926
XL
9 |
10 = note: required because of the requirements on the impl of `Foo` for `std::boxed::Box<{integer}>`
b7449926
XL
11
12error[E0038]: the trait `Foo` cannot be made into an object
e74abb32 13 --> $DIR/kindck-inherited-copy-bound.rs:28:19
b7449926 14 |
dc9dc135
XL
15LL | let z = &x as &dyn Foo;
16 | ^^^^^^^^ the trait `Foo` cannot be made into an object
b7449926
XL
17 |
18 = note: the trait cannot require that `Self : Sized`
19
20error[E0038]: the trait `Foo` cannot be made into an object
e74abb32 21 --> $DIR/kindck-inherited-copy-bound.rs:28:13
b7449926 22 |
dc9dc135 23LL | let z = &x as &dyn Foo;
b7449926
XL
24 | ^^ the trait `Foo` cannot be made into an object
25 |
26 = note: the trait cannot require that `Self : Sized`
27 = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<&dyn Foo>` for `&std::boxed::Box<{integer}>`
e74abb32 28 = note: required by cast to type `&dyn Foo`
b7449926
XL
29
30error: aborting due to 3 previous errors
31
48663c56 32Some errors have detailed explanations: E0038, E0277.
b7449926 33For more information about an error, try `rustc --explain E0038`.