]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/privacy/privacy-ns2.rs
Rollup merge of #92467 - Aaron1011:extern-local-region, r=oli-obk
[rust.git] / src / test / ui / privacy / privacy-ns2.rs
index b770c8f8f8610be5009a640e77b63b32875725b9..47035ef3af5a2a537e42dd4b8e0ed4d64b310bbc 100644 (file)
@@ -38,16 +38,14 @@ pub fn Bar() { }
 fn test_single2() {
     use foo2::Bar;
 
-    let _x : Box<Bar>; //~ ERROR wrong number of const arguments: expected 0, found 1
-    //~^ ERROR wrong number of type arguments: expected at least 1, found 0
+    let _x : Box<Bar>; //~ ERROR constant provided when a type was expected
     let _x : Bar(); //~ ERROR expected type, found function `Bar`
 }
 
 fn test_list2() {
     use foo2::{Bar,Baz};
 
-    let _x: Box<Bar>; //~ ERROR wrong number of const arguments: expected 0, found 1
-    //~^ ERROR wrong number of type arguments: expected at least 1, found 0
+    let _x: Box<Bar>; //~ ERROR constant provided when a type was expected
 }
 
 // neither public