* `default_type_params` - Allows use of default type parameters. The future of
this feature is uncertain.
-* `if_let` - Allows use of the `if let` syntax.
-
-* `while_let` - Allows use of the `while let` syntax.
-
* `intrinsics` - Allows use of the "rust-intrinsics" ABI. Compiler intrinsics
are inherently unstable and no promise about them is made.
which is considered wildly unsafe and will be
obsoleted by language improvements.
-* `tuple_indexing` - Allows use of tuple indexing (expressions like `expr.0`)
-
* `associated_types` - Allows type aliases in traits. Experimental.
If a feature is promoted to a language feature, then all existing programs will
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(tuple_indexing)]
-
fn main() {
let t = (42i, 42i);
t.0::<int>; //~ ERROR expected one of `.`, `;`, `}`, or an operator, found `::`
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(tuple_indexing)]
-
struct Foo(int, int);
fn main() {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(if_let)]
-
pub fn main() {
let x = Some(3i);
if let Some(y) = x {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(tuple_indexing)]
-
// Test that non-static methods can be assigned to local variables as
// function pointers.
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(tuple_indexing)]
-
struct MyStruct { field: uint }
const STRUCT: MyStruct = MyStruct { field: 42 };
const TUP: (uint,) = (43,);
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(tuple_indexing)]
struct S {
o: Option<String>
}
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(tuple_indexing)]
-
struct Foo<'a>(&'a [int]);
fn main() {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(tuple_indexing)]
-
struct Point(int, int);
fn main() {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(while_let)]
-
use std::collections::BinaryHeap;
fn make_pq() -> BinaryHeap<int> {