fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: comparison operators cannot be chained 2 --> $DIR/issue-40396.rs:2:20 3 | 4LL | (0..13).collect<Vec<i32>>(); 5 | ^ ^ 6 | 7help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments 8 | 9LL | (0..13).collect::<Vec<i32>>(); 10 | ++ 11 12error: comparison operators cannot be chained 13 --> $DIR/issue-40396.rs:5:8 14 | 15LL | Vec<i32>::new(); 16 | ^ ^ 17 | 18help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments 19 | 20LL | Vec::<i32>::new(); 21 | ++ 22 23error: comparison operators cannot be chained 24 --> $DIR/issue-40396.rs:8:20 25 | 26LL | (0..13).collect<Vec<i32>(); 27 | ^ ^ 28 | 29help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments 30 | 31LL | (0..13).collect::<Vec<i32>(); 32 | ++ 33 34error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` 35 --> $DIR/issue-40396.rs:11:43 36 | 37LL | let x = std::collections::HashMap<i128, i128>::new(); 38 | ^ expected one of 8 possible tokens 39 | 40help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments 41 | 42LL | let x = std::collections::HashMap::<i128, i128>::new(); 43 | ++ 44 45error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,` 46 --> $DIR/issue-40396.rs:15:39 47 | 48LL | std::collections::HashMap<i128, i128>::new() 49 | ^ expected one of 8 possible tokens 50 | 51help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments 52 | 53LL | std::collections::HashMap::<i128, i128>::new() 54 | ++ 55 56error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,` 57 --> $DIR/issue-40396.rs:20:39 58 | 59LL | std::collections::HashMap<i128, i128>::new(); 60 | ^ expected one of 8 possible tokens 61 | 62help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments 63 | 64LL | std::collections::HashMap::<i128, i128>::new(); 65 | ++ 66 67error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,` 68 --> $DIR/issue-40396.rs:25:39 69 | 70LL | std::collections::HashMap<i128, i128>::new(1, 2); 71 | ^ expected one of 8 possible tokens 72 | 73help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments 74 | 75LL | std::collections::HashMap::<i128, i128>::new(1, 2); 76 | ++ 77 78error[E0308]: mismatched types 79 --> $DIR/issue-40396.rs:13:17 80 | 81LL | let x: () = 42; 82 | -- ^^ expected `()`, found integer 83 | | 84 | expected due to this 85 86error[E0308]: mismatched types 87 --> $DIR/issue-40396.rs:18:17 88 | 89LL | let x: () = 42; 90 | -- ^^ expected `()`, found integer 91 | | 92 | expected due to this 93 94error[E0308]: mismatched types 95 --> $DIR/issue-40396.rs:22:21 96 | 97LL | let x: () = 42; 98 | -- ^^ expected `()`, found integer 99 | | 100 | expected due to this 101 102error[E0308]: mismatched types 103 --> $DIR/issue-40396.rs:27:21 104 | 105LL | let x: () = 32; 106 | -- ^^ expected `()`, found integer 107 | | 108 | expected due to this 109 110error: aborting due to 11 previous errors 111 112For more information about this error, try `rustc --explain E0308`.