]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lint/lint-stability.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / lint / lint-stability.rs
index 464b32c5f43ed994ac6a1259da96e5f41a185757..d0f0e9f807123eed3d49647435876efdfd1f87c9 100644 (file)
@@ -191,11 +191,11 @@ mod inheritance {
         stable_mod::unstable(); //~ ERROR use of unstable library feature
         stable_mod::stable();
 
-        unstable_mod::deprecated();
+        unstable_mod::deprecated(); //~ ERROR use of unstable library feature
         unstable_mod::unstable(); //~ ERROR use of unstable library feature
 
         let _ = Unstable::UnstableVariant; //~ ERROR use of unstable library feature
-        let _ = Unstable::StableVariant;
+        let _ = Unstable::StableVariant; //~ ERROR use of unstable library feature
 
         let x: usize = 0;
         x.stable();