blob: 254d36cb9479c5c14ec2528d012591690cfddd62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
error: struct literal body without path
--> $DIR/issue-34255-1.rs:8:26
|
LL | pub fn new() -> Self {
| __________________________^
LL | | input_cells: Vec::new()
LL | | }
| |_____^
|
help: you might have forgotten to add the struct literal inside the block
|
LL ~ pub fn new() -> Self { SomeStruct {
LL | input_cells: Vec::new()
LL ~ } }
|
error: aborting due to previous error
|