1 error: extern location for foo is of an unknown type: $DIR/issue-104621-extern-bad-file.rs
2 --> $DIR/issue-104621-extern-bad-file.rs:4:1
7 error: file name should be lib*.rlib or lib*.so
8 --> $DIR/issue-104621-extern-bad-file.rs:4:1
10 LL | extern crate foo;
13 error[E0463]: can't find crate for `foo`
14 --> $DIR/issue-104621-extern-bad-file.rs:4:1
16 LL | extern crate foo;
17 | ^^^^^^^^^^^^^^^^^ can't find crate
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0463`.