Skip to content

Commit

Permalink
Make main pub in test case (cc rust-lang#9629)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Dec 9, 2013
1 parent 9f7baed commit 1252947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-pass/borrowck-freeze-frozen-mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn get<'a, T>(ms: &'a MutSlice<'a, T>, index: uint) -> &'a T {
&ms.data[index]
}

fn main() {
pub fn main() {
let mut data = [1, 2, 3];
{
let slice = MutSlice { data: data };
Expand Down

1 comment on commit 1252947

@nikomatsakis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=pnkfelix

Please sign in to comment.