about summary refs log tree commit diff
path: root/tests/ui/traits/error-reporting/ambiguity-in-dropck-err-reporting.stderr
blob: 17ace03e891f2d647bd859917df20cd940d35d61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0107]: missing generics for struct `HandshakeCallback`
  --> $DIR/ambiguity-in-dropck-err-reporting.rs:9:25
   |
LL | impl<C: Clone> Role for HandshakeCallback {
   |                         ^^^^^^^^^^^^^^^^^ expected 1 generic argument
   |
note: struct defined here, with 1 generic parameter: `C`
  --> $DIR/ambiguity-in-dropck-err-reporting.rs:8:8
   |
LL | struct HandshakeCallback<C>(C);
   |        ^^^^^^^^^^^^^^^^^ -
help: add missing generic argument
   |
LL | impl<C: Clone> Role for HandshakeCallback<C> {
   |                                          +++

error: aborting due to 1 previous error

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