review comment: remove unecessary error in test
This commit is contained in:
parent
10d652107b
commit
bcd353c835
2 changed files with 4 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
|||
struct X {}
|
||||
fn f() {
|
||||
fn main() {
|
||||
vec![X]; //…
|
||||
//~^ ERROR expected value, found struct `X`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue