]> git.lizzy.rs Git - rust.git/commitdiff
Fix fallout in tests.
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>
Tue, 26 Jul 2016 04:16:48 +0000 (04:16 +0000)
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>
Wed, 27 Jul 2016 05:17:05 +0000 (05:17 +0000)
src/test/compile-fail/privacy-ns2.rs

index bf296220d2a2b601d2cb38bce3f6e5dba8621526..7accf0ca8201c27da5c21be4463c7fe765572dac 100644 (file)
@@ -25,15 +25,15 @@ fn Bar() { }
 }
 
 fn test_single1() {
-    use foo1::Bar;  //~ ERROR function `Bar` is private
+    use foo1::Bar;
 
-    Bar();
+    Bar(); //~ ERROR unresolved name `Bar`
 }
 
 fn test_list1() {
-    use foo1::{Bar,Baz};  //~ ERROR `Bar` is private
+    use foo1::{Bar,Baz};
 
-    Bar();
+    Bar(); //~ ERROR unresolved name `Bar`
 }
 
 // private type, public value
@@ -46,15 +46,15 @@ pub fn Bar() { }
 }
 
 fn test_single2() {
-    use foo2::Bar;  //~ ERROR trait `Bar` is private
+    use foo2::Bar;
 
-    let _x : Box<Bar>;
+    let _x : Box<Bar>; //~ ERROR type name `Bar` is undefined
 }
 
 fn test_list2() {
-    use foo2::{Bar,Baz};  //~ ERROR `Bar` is private
+    use foo2::{Bar,Baz};
 
-    let _x: Box<Bar>;
+    let _x: Box<Bar>; //~ ERROR type name `Bar` is undefined
 }
 
 // neither public