Error found staticlib `rustc` instead of rlib or dylib

I try to compile this example from rustc-dev-guide.

For this I install component rustc-dev-x86_64-pc-windows-msvc.
But unfortunately when compiling example compiler generates error:

Checking test1 v0.1.0 (E:\Progr\MyTestProject\test1)
error[E0462]: found staticlib rustc instead of rlib or dylib
--> src\
3 | extern crate rustc;
| ^^^^^^^^^^^^^^^^^^^
= help: please recompile that crate using --crate-type lib
= note: the following crate versions were found:
crate rustc: E:\Progr\Rust\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\rustc_dri

error: aborting due to previous error

Help please how to satisfy compiler, and do it in cheap manner.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.