]> git.lizzy.rs Git - rust.git/blob - tests/ui/functions-closures/fn-bare-size.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / functions-closures / fn-bare-size.rs
1 // run-pass
2
3 use std::mem;
4
5 pub fn main() {
6     // Bare functions should just be a pointer
7     assert_eq!(mem::size_of::<extern "Rust" fn()>(), mem::size_of::<isize>());
8 }