]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/deprecation/rustc_deprecation-in-future.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / deprecation / rustc_deprecation-in-future.rs
index 6a619bcc49c2d841bb6603bf316065e1ef461f98..11f7960b757860fa64952048c33ee454e9b0a5fa 100644 (file)
@@ -8,8 +8,13 @@
 
 #[rustc_deprecated(since = "99.99.99", reason = "effectively never")]
 #[stable(feature = "rustc_deprecation-in-future-test", since = "1.0.0")]
-pub struct S;
+pub struct S1;
+
+#[rustc_deprecated(since = "TBD", reason = "literally never")]
+#[stable(feature = "rustc_deprecation-in-future-test", since = "1.0.0")]
+pub struct S2;
 
 fn main() {
-    let _ = S; //~ ERROR use of unit struct `S` that will be deprecated in future version 99.99.99: effectively never
+    let _ = S1; //~ ERROR use of unit struct `S1` that will be deprecated in future version 99.99.99: effectively never
+    let _ = S2; //~ ERROR use of unit struct `S2` that will be deprecated in a future Rust version: literally never
 }