Add reborrow feature gate test

This commit is contained in:
Aapo Alasuutari 2025-08-22 00:15:59 +03:00
parent 5af359162e
commit fd44708aa3
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,3 @@
use std::marker::Reborrow; //~ ERROR use of unstable library feature `reborrow`
fn main() {}

View file

@ -0,0 +1,13 @@
error[E0658]: use of unstable library feature `reborrow`
--> $DIR/feature-gate-reborrow.rs:1:5
|
LL | use std::marker::Reborrow;
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #145612 <https://github.com/rust-lang/rust/issues/145612> for more information
= help: add `#![feature(reborrow)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0658`.