about summary refs log tree commit diff
path: root/tests/ui/functions-closures/fn-bare-size.rs
blob: 75725832365c85d29b43d339cdbdb31a7284303b (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>());
}