diff options
Diffstat (limited to 'src/tools/cargo/tests/testsuite/mock-std/library/test')
-rw-r--r-- | src/tools/cargo/tests/testsuite/mock-std/library/test/Cargo.toml | 18 | ||||
-rw-r--r-- | src/tools/cargo/tests/testsuite/mock-std/library/test/src/lib.rs | 10 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/tools/cargo/tests/testsuite/mock-std/library/test/Cargo.toml b/src/tools/cargo/tests/testsuite/mock-std/library/test/Cargo.toml new file mode 100644 index 000000000..299db7bfd --- /dev/null +++ b/src/tools/cargo/tests/testsuite/mock-std/library/test/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "test" +version = "0.1.0" +authors = ["Alex Crichton <alex@alexcrichton.com>"] +edition = "2018" + +[dependencies] +proc_macro = { path = "../proc_macro" } +std = { path = "../std" } +panic_unwind = { path = "../panic_unwind" } +compiler_builtins = { path = "../compiler_builtins" } +registry-dep-using-std = { version = "*", features = ['mockbuild'] } + +[features] +panic-unwind = [] +backtrace = [] +feature1 = ["std/feature1"] +default = [] diff --git a/src/tools/cargo/tests/testsuite/mock-std/library/test/src/lib.rs b/src/tools/cargo/tests/testsuite/mock-std/library/test/src/lib.rs new file mode 100644 index 000000000..a112855f5 --- /dev/null +++ b/src/tools/cargo/tests/testsuite/mock-std/library/test/src/lib.rs @@ -0,0 +1,10 @@ +#![feature(staged_api)] +#![feature(test)] +#![unstable(feature = "test", issue = "none")] + +extern crate test; + +pub use test::*; + +pub fn custom_api() { +} |