Skip to content

Commit fd44708

Browse files
committed
Add reborrow feature gate test
1 parent 5af3591 commit fd44708

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+
use std::marker::Reborrow; //~ ERROR use of unstable library feature `reborrow`
2+
3+
fn main() {}
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 `reborrow`
2+
--> $DIR/feature-gate-reborrow.rs:1:5
3+
|
4+
LL | use std::marker::Reborrow;
5+
| ^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: see issue #145612 <https://github.com/rust-lang/rust/issues/145612> for more information
8+
= help: add `#![feature(reborrow)]` 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)