fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.8 KiB44 linesraw
1error[E0277]: the trait bound `Bar<'a, T>: Foo` is not satisfied
2  --> $DIR/hir-wf-canonicalized.rs:10:15
3   |
4LL |     callback: Box<dyn Callback<dyn Callback<Bar<'a, T>>>>,
5   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `Bar<'a, T>`
6   |
7help: this trait has no implementations, consider adding one
8  --> $DIR/hir-wf-canonicalized.rs:3:1
9   |
10LL | trait Foo {
11   | ^^^^^^^^^
12
13error[E0277]: the trait bound `(dyn Callback<Bar<'a, T>, for<'b, 'c, 'd> Output = ()> + 'static): Foo` is not satisfied
14  --> $DIR/hir-wf-canonicalized.rs:10:15
15   |
16LL |     callback: Box<dyn Callback<dyn Callback<Bar<'a, T>>>>,
17   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `(dyn Callback<Bar<'a, T>, for<'b, 'c, 'd> Output = ()> + 'static)`
18   |
19help: this trait has no implementations, consider adding one
20  --> $DIR/hir-wf-canonicalized.rs:3:1
21   |
22LL | trait Foo {
23   | ^^^^^^^^^
24
25error[E0277]: the size for values of type `(dyn Callback<Bar<'a, T>, for<'b, 'c, 'd> Output = ()> + 'static)` cannot be known at compilation time
26  --> $DIR/hir-wf-canonicalized.rs:10:15
27   |
28LL |     callback: Box<dyn Callback<dyn Callback<Bar<'a, T>>>>,
29   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
30   |
31   = help: the trait `Sized` is not implemented for `(dyn Callback<Bar<'a, T>, for<'b, 'c, 'd> Output = ()> + 'static)`
32note: required by a bound in `Bar`
33  --> $DIR/hir-wf-canonicalized.rs:9:16
34   |
35LL | struct Bar<'a, T> {
36   |                ^ required by this bound in `Bar`
37help: consider relaxing the implicit `Sized` restriction
38   |
39LL | struct Bar<'a, T: ?Sized> {
40   |                 ++++++++
41
42error: aborting due to 3 previous errors
43
44For more information about this error, try `rustc --explain E0277`.