Skip to content

Commit

Permalink
Fix the usual check-fast scoping mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
jld committed Nov 26, 2013
1 parent 8624d5b commit 0c04a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-pass/enum-clike-ffi-as-int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" fn foo(_x: uint) -> Foo { B }

pub fn main() {
unsafe {
let f: extern "C" fn(uint) -> u32 = std::cast::transmute(foo);
let f: extern "C" fn(uint) -> u32 = ::std::cast::transmute(foo);
assert_eq!(f(0xDEADBEEF), B as u32);
}
}

1 comment on commit 0c04a26

@thestinger
Copy link

Choose a reason for hiding this comment

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

r+

Please sign in to comment.