]> git.lizzy.rs Git - rust.git/commitdiff
update compile-fail tests: fewer warnings because this is now a HIR lint
authorRalf Jung <post@ralfj.de>
Mon, 19 Mar 2018 17:08:12 +0000 (18:08 +0100)
committerRalf Jung <post@ralfj.de>
Mon, 19 Mar 2018 17:08:12 +0000 (18:08 +0100)
src/test/compile-fail/issue-17994.rs
src/test/compile-fail/private-in-public-warn.rs

index 7c3811e2ef28bad41106046465ac762e46d188a5..25141b9b8255788e9e1688f31a5eedb3dc075c02 100644 (file)
@@ -10,5 +10,4 @@
 
 trait Tr {}
 type Huh<T> where T: Tr = isize; //~  ERROR type parameter `T` is unused
-                                 //~| WARNING where clauses are not enforced in type aliases
 fn main() {}
index 8bd9b0a901d65ddb823132c43006cc7f142ac9bd..6eeb14638e7591661a52269b7dd22deb3673c60c 100644 (file)
@@ -58,7 +58,6 @@ trait PrivTr {}
     pub trait PubTr {}
 
     pub type Alias<T: PrivTr> = T; //~ ERROR private trait `traits::PrivTr` in public interface
-    //~^ WARNING bounds on generic parameters are not enforced in type aliases
     //~| WARNING hard error
     pub trait Tr1: PrivTr {} //~ ERROR private trait `traits::PrivTr` in public interface
     //~^ WARNING hard error
@@ -85,7 +84,6 @@ pub trait PubTr {}
     pub type Alias<T> where T: PrivTr = T;
         //~^ ERROR private trait `traits_where::PrivTr` in public interface
         //~| WARNING hard error
-        //~| WARNING where clauses are not enforced in type aliases
     pub trait Tr2<T> where T: PrivTr {}
         //~^ ERROR private trait `traits_where::PrivTr` in public interface
         //~| WARNING hard error