// -*- rust -*-
type list = tag(cons(int,@list), nil());
fn main() {
cons(10, cons(11, cons(12, nil())));
}
// -*- rust -*-
type list = tag(cons(int,@list), nil());
fn main() {
cons(10, @cons(11, @cons(12, @nil())));
}
// -*- rust -*-
tag list {
cons(int,@list);
nil();
}
fn main() {
cons(10, @cons(11, @cons(12, @nil())));
}
// -*- rust -*-
tag list {
cons(int,@list);
nil;
}
fn main() {
cons(10, @cons(11, @cons(12, @nil)));
}
// -*- rust -*-
tag list { cons(int, @list); nil; }
fn main() { cons(10, @cons(11, @cons(12, @nil))); }
// -*- rust -*-
tag list { cons(int, @list); nil; }
fn main() { cons(10, @cons(11, @cons(12, @nil))); }
// -*- rust -*-
enum list { cons(int, @list); nil; }
fn main() { cons(10, @cons(11, @cons(12, @nil))); }
// -*- rust -*-
enum list { cons(int, @list), nil, }
fn main() { cons(10, @cons(11, @cons(12, @nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
enum list { cons(int, @list), nil, }
fn main() { cons(10, @cons(11, @cons(12, @nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
enum list { cons(int, @list), nil, }
pub fn main() { cons(10, @cons(11, @cons(12, @nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[feature(managed_boxes)];
enum list { cons(int, @list), nil, }
pub fn main() { cons(10, @cons(11, @cons(12, @nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(managed_boxes)]
enum list { cons(int, @list), nil, }
pub fn main() { cons(10, @cons(11, @cons(12, @nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(managed_boxes)]
use std::gc::{Gc, GC};
enum list { cons(int, Gc<list>), nil, }
pub fn main() { cons(10, box(GC) cons(11, box(GC) cons(12, box(GC) nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::gc::{Gc, GC};
enum list { cons(int, Gc<list>), nil, }
pub fn main() { cons(10, box(GC) cons(11, box(GC) cons(12, box(GC) nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
enum list { cons(int, Box<list>), nil, }
pub fn main() { cons(10, box cons(11, box cons(12, box nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
enum list { cons(int, Box<list>), nil, }
pub fn main() { list::cons(10, box list::cons(11, box list::cons(12, box list::nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
enum list { cons(int, Box<list>), nil, }
pub fn main() { list::cons(10, box list::cons(11, box list::cons(12, box list::nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-expanded FIXME #23616
#![allow(unknown_features)]
#![feature(box_syntax)]
enum list { cons(int, Box<list>), nil, }
pub fn main() { list::cons(10, box list::cons(11, box list::cons(12, box list::nil))); }
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-expanded FIXME #23616
#![allow(unknown_features)]
#![feature(box_syntax)]
enum list { cons(isize, Box<list>), nil, }
pub fn main() { list::cons(10, box list::cons(11, box list::cons(12, box list::nil))); }