Skip to content

Commit

Permalink
Make main() public in uninit-empty-types
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jan 17, 2014
1 parent 5e7657f commit 0c916c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-pass/uninit-empty-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::unstable::intrinsics;
#[deriving(Clone)]
struct Foo;

fn main() {
pub fn main() {
unsafe {
let _x: Foo = intrinsics::uninit();
let _x: [Foo, ..2] = intrinsics::uninit();
Expand Down

4 comments on commit 0c916c5

@bors
Copy link
Contributor

@bors bors commented on 0c916c5 Jan 17, 2014

Choose a reason for hiding this comment

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

saw approval from pcwalton
at nikomatsakis@0c916c5

@bors
Copy link
Contributor

@bors bors commented on 0c916c5 Jan 17, 2014

Choose a reason for hiding this comment

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

merging nikomatsakis/rust/issue-3511-rvalue-lifetimes = 0c916c5 into auto

@bors
Copy link
Contributor

@bors bors commented on 0c916c5 Jan 17, 2014

Choose a reason for hiding this comment

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

nikomatsakis/rust/issue-3511-rvalue-lifetimes = 0c916c5 merged ok, testing candidate = 6f6e08fb

Please sign in to comment.