]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-71036.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-71036.stderr
1 error[E0277]: the trait bound `&'a T: Unsize<&'a U>` is not satisfied
2   --> $DIR/issue-71036.rs:11:1
3    |
4 LL | impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Foo<'a, U>> for Foo<'a, T> {}
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unsize<&'a U>` is not implemented for `&'a T`
6    |
7    = note: all implementations of `Unsize` are provided automatically by the compiler, see <https://doc.rust-lang.org/stable/std/marker/trait.Unsize.html> for more information
8    = note: required because of the requirements on the impl of `DispatchFromDyn<&'a &'a U>` for `&'a &'a T`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.