Skip to content

Commit f45a7a2

Browse files
committed
Fix feature-gates/rustc-private.rs
1 parent 7a906e1 commit f45a7a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// gate-test-rustc_private
22

3-
extern crate libc; //~ ERROR use of unstable library feature 'rustc_private'
3+
extern crate cfg_if; //~ ERROR use of unstable library feature 'rustc_private'
44

55
fn main() {}

tests/ui/feature-gates/rustc-private.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
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?
22
--> $DIR/rustc-private.rs:3:1
33
|
4-
LL | extern crate libc;
5-
| ^^^^^^^^^^^^^^^^^^
4+
LL | extern crate cfg_if;
5+
| ^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
88
= help: add `#![feature(rustc_private)]` to the crate attributes to enable

0 commit comments

Comments
 (0)