Skip to content

Commit 3c33cbe

Browse files
Add ui test for ensuring that users cannot use literal-escaper crate for the time being
1 parent d40ed63 commit 3c33cbe

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![crate_type = "lib"]
2+
3+
extern crate literal_escaper; //~ ERROR
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
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?
2+
--> $DIR/literal-escaper.rs:3:1
3+
|
4+
LL | extern crate literal_escaper;
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
8+
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10+
11+
error: aborting due to 1 previous error
12+
13+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)