]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/did_you_mean/issue-40396.rs
2 (0..13).collect
<Vec
<i32>>();
3 //~^ ERROR comparison operators cannot be chained
4 //~| HELP use `::<...>` instead
6 //~^ ERROR comparison operators cannot be chained
7 //~| HELP use `::<...>` instead
8 (0..13).collect
<Vec
<i32>();
9 //~^ ERROR comparison operators cannot be chained
10 //~| HELP use `::<...>` instead
11 let x
= std
::collections
::HashMap
<i128
, i128
>::new(); //~ ERROR expected one of
12 //~^ HELP use `::<...>` instead
13 let x
: () = 42; //~ ERROR mismatched types
15 std
::collections
::HashMap
<i128
, i128
>::new() //~ ERROR expected one of
16 //~^ HELP use `::<...>` instead
18 let x
: () = 42; //~ ERROR mismatched types
20 std
::collections
::HashMap
<i128
, i128
>::new(); //~ ERROR expected one of
21 //~^ HELP use `::<...>` instead
22 let x
: () = 42; //~ ERROR mismatched types
25 std
::collections
::HashMap
<i128
, i128
>::new(1, 2); //~ ERROR expected one of
26 //~^ HELP use `::<...>` instead
27 let x
: () = 32; //~ ERROR mismatched types