]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-inherited-copy-bound.stderr
Update ui tests
[rust.git] / src / test / ui / kindck / kindck-inherited-copy-bound.stderr
1 error[E0277]: the trait bound `std::boxed::Box<{integer}>: std::marker::Copy` is not satisfied
2   --> $DIR/kindck-inherited-copy-bound.rs:18:16
3    |
4 LL | fn take_param<T:Foo>(foo: &T) { }
5    |    ----------   --- required by this bound in `take_param`
6 ...
7 LL |     take_param(&x);
8    |                ^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<{integer}>`
9    |
10    = note: required because of the requirements on the impl of `Foo` for `std::boxed::Box<{integer}>`
11
12 error[E0038]: the trait `Foo` cannot be made into an object
13   --> $DIR/kindck-inherited-copy-bound.rs:24:19
14    |
15 LL |     let z = &x as &dyn Foo;
16    |                   ^^^^^^^^ the trait `Foo` cannot be made into an object
17    |
18    = note: the trait cannot require that `Self : Sized`
19
20 error[E0038]: the trait `Foo` cannot be made into an object
21   --> $DIR/kindck-inherited-copy-bound.rs:24:13
22    |
23 LL |     let z = &x as &dyn Foo;
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}>`
28
29 error: aborting due to 3 previous errors
30
31 Some errors have detailed explanations: E0038, E0277.
32 For more information about an error, try `rustc --explain E0038`.