]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/privacy/privacy-ns2.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / privacy / privacy-ns2.rs
index a2cc9e6aa9515de937212ddfcfb55b2c907ff8fc..0546de873f3404aeaa7ab4092bed04b92f3b0ee7 100644 (file)
@@ -38,14 +38,16 @@ pub mod foo2 {
 fn test_single2() {
     use foo2::Bar;
 
-    let _x : Box<Bar>; //~ ERROR expected type, found function `Bar`
+    let _x : Box<Bar>; //~ ERROR wrong number of const arguments: expected 0, found 1
+    //~^ ERROR wrong number of type arguments: expected 1, found 0
     let _x : Bar(); //~ ERROR expected type, found function `Bar`
 }
 
 fn test_list2() {
     use foo2::{Bar,Baz};
 
-    let _x: Box<Bar>; //~ ERROR expected type, found function `Bar`
+    let _x: Box<Bar>; //~ ERROR wrong number of const arguments: expected 0, found 1
+    //~^ ERROR wrong number of type arguments: expected 1, found 0
 }
 
 // neither public