micanzhang / ob-rust

28 stars 10 forks source link

using extern crate #5

Open flintforge opened 6 years ago

flintforge commented 6 years ago

Out of the box : C-c C-c

Compiling rust-src-...
error: use of unstable library feature 'rustc_private': 
this crate is being loaded from the sysroot, an unstable location; 
did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812)

Workaround : use nightly build curl -s https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly and add

#![feature(rustc_private)]

in the source header