-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
fn main() {
let &v = new();
- //~^ ERROR type annotations required
+ //~^ ERROR type annotations or generic parameter binding required
}
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
fn main() {
let &v = new();
- //~^ ERROR type annotations required
+ //~^ ERROR type annotations or generic parameter binding required
}
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// except according to those terms.
fn main() { format!("{:?}", None); }
- //~^ ERROR type annotations required
+ //~^ ERROR type annotations or generic parameter binding required
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
fn main() {
// Unconstrained type:
format!("{:?}", None);
- //~^ ERROR type annotations required
+ //~^ ERROR type annotations or generic parameter binding required
}
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
fn main() {
mem::transmute(0);
- //~^ ERROR type annotations required
+ //~^ ERROR type annotations or generic parameter binding required
}
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
fn foo(b: bool) -> Result<bool,String> {
Err("bar".to_string());
- //~^ ERROR type annotations required
+ //~^ ERROR type annotations or generic parameter binding required
}
fn main() {
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
pub fn foo<State>(_: TypeWithState<State>) {}
pub fn bar() {
- foo(TypeWithState(marker::PhantomData)); //~ ERROR type annotations required
+ foo(TypeWithState(marker::PhantomData));
+ //~^ ERROR type annotations or generic parameter binding required
}
fn main() {
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
fn main() {
let v = &[];
- let it = v.iter(); //~ ERROR type annotations required
+ let it = v.iter(); //~ ERROR type annotations or generic parameter binding required
}
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
fn m1() {
// we couldn't infer the type of the vector just based on calling foo()...
- let mut x = Vec::new(); //~ ERROR type annotations required
+ let mut x = Vec::new();
+ //~^ ERROR type annotations or generic parameter binding required
x.foo();
}
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
}
fn a() {
- test(22, std::default::Default::default()); //~ ERROR type annotations required
+ test(22, std::default::Default::default());
+ //~^ ERROR type annotations or generic parameter binding required
}
fn main() {}
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Issue #5062
fn main() {
- None; //~ ERROR type annotations required
+ None; //~ ERROR type annotations or generic parameter binding required
}
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
}
fn main() {
- S { o: &None }; //~ ERROR type annotations required
+ S { o: &None }; //~ ERROR type annotations or generic parameter binding required
}
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
fn main() {
- let _foo = Vec::new(); //~ ERROR type annotations required
+ let _foo = Vec::new();
+ //~^ ERROR type annotations or generic parameter binding required
}