summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-105226.stderr
blob: f16a80901039030b8b668a688d33bc8d3a450a45 (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
error: non-item in item list
  --> $DIR/issue-105226.rs:7:56
   |
LL | impl S {
   |        - item list starts here
LL |     fn hello<P>(&self, val: &P) where P: fmt::Display; {
   |                                                      - ^ non-item starts here
   |                                                      |
   |                                                      help: consider removing this semicolon
...
LL | }
   | - item list ends here

error: associated function in `impl` without body
  --> $DIR/issue-105226.rs:7:5
   |
LL |     fn hello<P>(&self, val: &P) where P: fmt::Display; {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                                                      |
   |                                                      help: provide a definition for the function: `{ <body> }`

error: associated function in `impl` without body
  --> $DIR/issue-105226.rs:15:5
   |
LL |     fn hello_empty<P>(&self, val: &P) where P: fmt::Display;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                                                            |
   |                                                            help: provide a definition for the function: `{ <body> }`

error: aborting due to 3 previous errors