Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 312 Bytes
// run-pass
#![allow(unused_assignments)]
#![allow(non_camel_case_types)]
// pretty-expanded FIXME #23616
#![allow(unused_variables)]
#![feature(box_syntax)]
enum option<T> { some(Box<T>), none, }
pub fn main() {
let mut a: option<isize> = option::some::<isize>(box 10);
a = option::none::<isize>;
}
You can’t perform that action at this time.