mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 21:05:12 +00:00
parent
90c2402089
commit
b04f84275a
9
src/test/run-pass/fn-bare-size.rs
Normal file
9
src/test/run-pass/fn-bare-size.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// xfail-test
|
||||
|
||||
use std;
|
||||
|
||||
fn main() {
|
||||
// Bare functions should just be a pointer
|
||||
assert std::sys::rustrt::size_of::<fn#()>() ==
|
||||
std::sys::rustrt::size_of::<int>();
|
||||
}
|
Loading…
Reference in New Issue
Block a user