]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22644.rs
rustdoc: Remove unused Clean impls
[rust.git] / src / test / ui / issues / issue-22644.rs
1 #![feature(type_ascription)]
2
3 fn main() {
4     let a : usize = 0;
5     let long_name : usize = 0;
6
7     println!("{}", a as usize > long_name);
8     println!("{}", a as usize < long_name); //~ ERROR `<` is interpreted as a start of generic
9     println!("{}{}", a as usize < long_name, long_name);
10     //~^ ERROR `<` is interpreted as a start of generic
11     println!("{}", a as usize < 4); //~ ERROR `<` is interpreted as a start of generic
12     println!("{}", a: usize > long_name);
13     println!("{}{}", a: usize < long_name, long_name);
14     //~^ ERROR `<` is interpreted as a start of generic
15     println!("{}", a: usize < 4); //~ ERROR `<` is interpreted as a start of generic
16
17     println!("{}", a
18                    as
19                    usize
20                    < //~ ERROR `<` is interpreted as a start of generic
21                    4);
22     println!("{}", a
23
24
25                    as
26
27
28                    usize
29                    < //~ ERROR `<` is interpreted as a start of generic
30                    5);
31
32     println!("{}", a as usize << long_name); //~ ERROR `<` is interpreted as a start of generic
33
34     println!("{}", a: &mut 4); //~ ERROR expected type, found `4`
35 }