fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0618]: expected function, found struct `G` 2 --> $DIR/issue-20714.rs:4:13 3 | 4LL | struct G; 5 | -------- struct `G` defined here 6... 7LL | let g = G(); 8 | ^-- 9 | | 10 | call expression requires function 11 | 12help: `G` is a unit struct, and does not take parentheses to be constructed 13 | 14LL - let g = G(); 15LL + let g = G; 16 | 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0618`.