]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-fn-ret.rs
Rollup merge of #88858 - spektom:to_lower_upper_rev, r=dtolnay
[rust.git] / src / test / ui / unique / unique-fn-ret.rs
1 // run-pass
2
3 fn f() -> Box<isize> {
4     Box::new(100)
5 }
6
7 pub fn main() {
8     assert_eq!(f(), Box::new(100));
9 }