]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/lint-stability.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / lint-stability.rs
index 414d2a857acc72b0f813ef977a9ffbe8166a1374..953cd4a2ff5eac744efb08592f9c7b13f58da167 100644 (file)
@@ -128,6 +128,11 @@ mod cross_crate {
         <Foo>::trait_stable_text(&foo);
         <Foo as Trait>::trait_stable_text(&foo);
 
+        struct S1<T: TraitWithAssociatedTypes>(T::TypeUnstable);
+        //~^ ERROR use of unstable library feature
+        struct S2<T: TraitWithAssociatedTypes>(T::TypeDeprecated);
+        //~^ ERROR use of deprecated item
+
         let _ = DeprecatedStruct { //~ ERROR use of deprecated item
             i: 0 //~ ERROR use of deprecated item
         };