error: function is never used: `foo`
--> $DIR/with-core-crate.rs:7:4
|
LL | fn foo() {
| ^^^
note: lint level defined here
--> $DIR/with-core-crate.rs:1:9
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: aborting due to previous error