]> git.lizzy.rs Git - rust.git/blob - tests/ui/mir/mir_boxing.rs
Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum
[rust.git] / tests / ui / mir / mir_boxing.rs
1 // run-pass
2 #![feature(box_syntax)]
3
4 fn test() -> Box<i32> {
5     box 42
6 }
7
8 fn main() {
9     assert_eq!(*test(), 42);
10 }