about summary refs log tree commit diff
path: root/tests/ui/suggestions/issue-116434-2021.stderr
blob: 3853f03f1db674421787a80b8b3b2e3839793599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
error[E0782]: expected a type, found a trait
  --> $DIR/issue-116434-2021.rs:5:17
   |
LL |     fn foo() -> Clone;
   |                 ^^^^^
   |
help: `Clone` is dyn-incompatible, use `impl Clone` to return an opaque type, as long as you return a single underlying type
   |
LL |     fn foo() -> impl Clone;
   |                 ++++
help: there is an associated type with the same name
   |
LL |     fn foo() -> Self::Clone;
   |                 ++++++

error[E0782]: expected a type, found a trait
  --> $DIR/issue-116434-2021.rs:15:20
   |
LL |     fn handle() -> DbHandle;
   |                    ^^^^^^^^
   |
help: `DbHandle` is dyn-incompatible, use `impl DbHandle` to return an opaque type, as long as you return a single underlying type
   |
LL |     fn handle() -> impl DbHandle;
   |                    ++++
help: there is an associated type with the same name
   |
LL |     fn handle() -> Self::DbHandle;
   |                    ++++++

error: aborting due to 2 previous errors

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