Skip to content

Commit

Permalink
Fix fallout in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Jul 27, 2016
1 parent 132bff9 commit 8205691
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/test/compile-fail/privacy-ns2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ pub mod foo1 {
}

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
Expand All @@ -46,15 +46,15 @@ pub mod foo2 {
}

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
Expand Down

0 comments on commit 8205691

Please sign in to comment.