1 error[E0425]: cannot find function `foo` in this scope
2 --> $DIR/issue-4366.rs:18:29
4 LL | fn sub() -> isize { foo(); 1 }
5 | ^^^ not found in this scope
7 help: consider importing this function
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0425`.