Add reborrow feature gate test
This commit is contained in:
parent
5af359162e
commit
fd44708aa3
2 changed files with 16 additions and 0 deletions
3
tests/ui/feature-gates/feature-gate-reborrow.rs
Normal file
3
tests/ui/feature-gates/feature-gate-reborrow.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
use std::marker::Reborrow; //~ ERROR use of unstable library feature `reborrow`
|
||||
|
||||
fn main() {}
|
||||
13
tests/ui/feature-gates/feature-gate-reborrow.stderr
Normal file
13
tests/ui/feature-gates/feature-gate-reborrow.stderr
Normal 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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue