review comment: remove unecessary error in test

This commit is contained in:
Esteban Küber 2019-08-13 09:01:56 -07:00 committed by Pietro Albini
parent 10d652107b
commit bcd353c835
No known key found for this signature in database
GPG key ID: 3E06ABE80BAAF19C
2 changed files with 4 additions and 12 deletions

View file

@ -1,5 +1,5 @@
struct X {}
fn f() {
fn main() {
vec![X]; //…
//~^ ERROR expected value, found struct `X`
}

View file

@ -2,16 +2,8 @@ error[E0423]: expected value, found struct `X`
--> $DIR/issue-61226.rs:3:10
|
LL | vec![X]; //…
| ^
| |
| did you mean `X { /* fields */ }`?
| help: a function with a similar name exists: `f`
| ^ did you mean `X { /* fields */ }`?
error[E0601]: `main` function not found in crate `issue_61226`
|
= note: consider adding a `main` function to `$DIR/issue-61226.rs`
error: aborting due to previous error
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0423, E0601.
For more information about an error, try `rustc --explain E0423`.
For more information about this error, try `rustc --explain E0423`.