1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
13 let long_name : usize = 0;
15 println!("{}", a as usize > long_name);
16 println!("{}", a as usize < long_name); //~ ERROR `<` is interpreted as a start of generic
17 println!("{}{}", a as usize < long_name, long_name);
18 //~^ ERROR `<` is interpreted as a start of generic
19 println!("{}", a as usize < 4); //~ ERROR `<` is interpreted as a start of generic
20 println!("{}", a: usize > long_name);
21 println!("{}{}", a: usize < long_name, long_name);
22 //~^ ERROR `<` is interpreted as a start of generic
23 println!("{}", a: usize < 4); //~ ERROR `<` is interpreted as a start of generic
28 < //~ ERROR `<` is interpreted as a start of generic
37 < //~ ERROR `<` is interpreted as a start of generic
40 println!("{}", a as usize << long_name); //~ ERROR `<` is interpreted as a start of generic
42 println!("{}", a: &mut 4); //~ ERROR expected type, found `4`