diff options
| author | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2025-08-29 23:35:07 +0300 |
|---|---|---|
| committer | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2025-09-15 20:23:26 +0300 |
| commit | fce8c13f77bcbebfea4461536be828d7136b8c1a (patch) | |
| tree | 4d33a5bab36224f9b3b8b887b7261451bc5f5657 /tests | |
| parent | c8663eec6a667ae6e7571297cb15192425311c33 (diff) | |
| download | rust-fce8c13f77bcbebfea4461536be828d7136b8c1a.tar.gz rust-fce8c13f77bcbebfea4461536be828d7136b8c1a.zip | |
Add reborrow CoerceShared feature gate test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-reborrow-coerce-shared.rs | 3 | ||||
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-reborrow-coerce-shared.stderr | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-reborrow-coerce-shared.rs b/tests/ui/feature-gates/feature-gate-reborrow-coerce-shared.rs new file mode 100644 index 00000000000..48a14959d8d --- /dev/null +++ b/tests/ui/feature-gates/feature-gate-reborrow-coerce-shared.rs @@ -0,0 +1,3 @@ +use std::marker::CoerceShared; //~ ERROR use of unstable library feature `reborrow` + +fn main() {} diff --git a/tests/ui/feature-gates/feature-gate-reborrow-coerce-shared.stderr b/tests/ui/feature-gates/feature-gate-reborrow-coerce-shared.stderr new file mode 100644 index 00000000000..c4c5e06778a --- /dev/null +++ b/tests/ui/feature-gates/feature-gate-reborrow-coerce-shared.stderr @@ -0,0 +1,13 @@ +error[E0658]: use of unstable library feature `reborrow` + --> $DIR/feature-gate-reborrow-coerce-shared.rs:1:5 + | +LL | use std::marker::CoerceShared; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = 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`. |
