2019-09-30 20:22:58 +00:00
|
|
|
fn main() {
|
2018-12-16 17:23:27 +00:00
|
|
|
(0..13).collect<Vec<i32>>();
|
2020-01-11 00:19:09 +00:00
|
|
|
//~^ ERROR comparison operators cannot be chained
|
2020-08-31 17:24:37 +00:00
|
|
|
//~| HELP use `::<...>` instead
|
2018-12-16 17:23:27 +00:00
|
|
|
Vec<i32>::new();
|
2020-01-11 00:19:09 +00:00
|
|
|
//~^ ERROR comparison operators cannot be chained
|
2020-08-31 17:24:37 +00:00
|
|
|
//~| HELP use `::<...>` instead
|
2018-12-16 17:23:27 +00:00
|
|
|
(0..13).collect<Vec<i32>();
|
2020-01-11 00:19:09 +00:00
|
|
|
//~^ ERROR comparison operators cannot be chained
|
2020-08-31 17:24:37 +00:00
|
|
|
//~| HELP use `::<...>` instead
|
|
|
|
let x = std::collections::HashMap<i128, i128>::new(); //~ ERROR expected one of
|
|
|
|
//~^ HELP use `::<...>` instead
|
|
|
|
let x: () = 42; //~ ERROR mismatched types
|
|
|
|
let x = {
|
|
|
|
std::collections::HashMap<i128, i128>::new() //~ ERROR expected one of
|
|
|
|
//~^ HELP use `::<...>` instead
|
|
|
|
};
|
|
|
|
let x: () = 42; //~ ERROR mismatched types
|
|
|
|
let x = {
|
|
|
|
std::collections::HashMap<i128, i128>::new(); //~ ERROR expected one of
|
|
|
|
//~^ HELP use `::<...>` instead
|
|
|
|
let x: () = 42; //~ ERROR mismatched types
|
|
|
|
};
|
|
|
|
{
|
|
|
|
std::collections::HashMap<i128, i128>::new(1, 2); //~ ERROR expected one of
|
|
|
|
//~^ HELP use `::<...>` instead
|
|
|
|
let x: () = 32; //~ ERROR mismatched types
|
|
|
|
};
|
2017-03-14 02:07:47 +00:00
|
|
|
}
|