Skip to content

Commit a803f5b

Browse files
committed
Fix fallout in tests
1 parent 5361472 commit a803f5b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/test/compile-fail/privacy1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ mod foo {
102102
//~^ ERROR: method `bar` is private
103103
::bar::baz::A.foo2(); //~ ERROR: module `baz` is private
104104
::bar::baz::A.bar2(); //~ ERROR: module `baz` is private
105+
//~^ ERROR: method `bar2` is private
105106

106107
let _: isize =
107108
::bar::B::foo(); //~ ERROR: trait `B` is private

src/test/compile-fail/regions-glb-free-free.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
mod argparse {
1212
pub struct Flag<'a> {
1313
name: &'a str,
14-
desc: &'a str,
14+
pub desc: &'a str,
1515
max_count: usize,
1616
value: usize
1717
}

src/test/parse-fail/pub-method-macro.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,4 @@ mod bleh {
2929
}
3030
}
3131

32-
fn main() {
33-
bleh::S.f();
34-
}
32+
fn main() {}

0 commit comments

Comments
 (0)