1 error[E0425]: cannot find external crate `foo` in the crate root
2 --> $DIR/crate-called-as-function.rs:2:7
5 | ^^^ not found in the crate root
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0425`.