summaryrefslogtreecommitdiffstats
path: root/src/test/ui/functions-closures/fn-bare-size.rs
blob: 2ba56eaaed4c7e58debdc56f809944f071033519 (plain)
1
2
3
4
5
6
7
8
// run-pass

use std::mem;

pub fn main() {
    // Bare functions should just be a pointer
    assert_eq!(mem::size_of::<extern "Rust" fn()>(), mem::size_of::<isize>());
}