blob: f83dae4e9fa7944ab95b9df9a953dcde1c7e2b6f (
plain)
1
2
3
4
5
6
7
8
9
|
// -*- rust -*-
// Tests for alt as expressions resulting in boxed types
fn test_box() { let res = alt true { true { ~100 } }; assert (*res == 100); }
fn main() { test_box(); }
|