summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/assembly/ambiguity-due-to-uniquification-1.next.stderr
blob: 141a07b4be7c074b3ea34cbd0b733ff37ba2f6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0283]: type annotations needed: cannot satisfy `dyn D<&(), &()>: B<&()>`
  --> $DIR/ambiguity-due-to-uniquification-1.rs:15:31
   |
LL |     (&() as &dyn D<&(), &()>).f()
   |                               ^
   |
   = note: cannot satisfy `dyn D<&(), &()>: B<&()>`
   = help: the trait `B<C>` is implemented for `()`
note: required by a bound in `D::f`
  --> $DIR/ambiguity-due-to-uniquification-1.rs:10:16
   |
LL | trait D<C, E>: B<C> + B<E> {
   |                ^^^^ required by this bound in `D::f`
LL |     fn f(&self) {}
   |        - required by a bound in this associated function

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0283`.