path = "bar"
"#)
.file("src/lib.rs", r#"
- extern crate the_bar = "bar";
+ extern crate "bar" as the_bar;
extern crate test;
pub fn bar() { the_bar::baz(); }
fn foo(_b: &mut test::Bencher) {}
"#)
.file("benches/bench.rs", r#"
- extern crate the_foo = "foo";
+ extern crate "foo" as the_foo;
extern crate test;
#[bench]
path = "bar"
"#)
.file("src/lib.rs", r#"
- extern crate the_bar = "bar";
+ extern crate "bar" as the_bar;
pub fn bar() { the_bar::baz(); }
fn foo() { bar(); }
"#)
.file("tests/test.rs", r#"
- extern crate the_foo = "foo";
+ extern crate "foo" as the_foo;
#[test]
fn foo() { the_foo::bar(); }