Skip to content

Commit bcd353c

Browse files
estebankpietroalbini
authored andcommitted
review comment: remove unecessary error in test
1 parent 10d6521 commit bcd353c

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
struct X {}
2-
fn f() {
2+
fn main() {
33
vec![X]; //…
44
//~^ ERROR expected value, found struct `X`
55
}

src/test/ui/suggestions/issue-61226.stderr

+3-11
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@ error[E0423]: expected value, found struct `X`
22
--> $DIR/issue-61226.rs:3:10
33
|
44
LL | vec![X]; //…
5-
| ^
6-
| |
7-
| did you mean `X { /* fields */ }`?
8-
| help: a function with a similar name exists: `f`
5+
| ^ did you mean `X { /* fields */ }`?
96

10-
error[E0601]: `main` function not found in crate `issue_61226`
11-
|
12-
= note: consider adding a `main` function to `$DIR/issue-61226.rs`
13-
14-
error: aborting due to 2 previous errors
7+
error: aborting due to previous error
158

16-
Some errors have detailed explanations: E0423, E0601.
17-
For more information about an error, try `rustc --explain E0423`.
9+
For more information about this error, try `rustc --explain E0423`.

0 commit comments

Comments
 (0)