mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Fix feature-gates/rustc-private.rs
This commit is contained in:
parent
7a906e1af7
commit
f45a7a291c
@ -1,5 +1,5 @@
|
||||
// gate-test-rustc_private
|
||||
|
||||
extern crate libc; //~ ERROR use of unstable library feature 'rustc_private'
|
||||
extern crate cfg_if; //~ ERROR use of unstable library feature 'rustc_private'
|
||||
|
||||
fn main() {}
|
||||
|
@ -1,8 +1,8 @@
|
||||
error[E0658]: 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?
|
||||
--> $DIR/rustc-private.rs:3:1
|
||||
|
|
||||
LL | extern crate libc;
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
LL | extern crate cfg_if;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
|
||||
|
Loading…
Reference in New Issue
Block a user