1 error[E0425]: cannot find function `g` in this scope
2 --> $DIR/issue-31845.rs:7:12
5 | ------ similarly named function `h` defined here
7 | ^ help: a function with a similar name exists: `h`
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0425`.