]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-72690.rs
3 let _
= String
::from("x");
7 String
::from("x".as_ref()); //~ ERROR type annotations needed
8 //~^ ERROR type annotations needed
11 fn arg_pat_closure_err() {
12 |x
| String
::from("x".as_ref()); //~ ERROR type annotations needed
13 //~| ERROR type annotations needed
16 fn local_pat_closure_err() {
17 let _
= "x".as_ref(); //~ ERROR type annotations needed
20 fn err_first_arg_pat() {
21 String
::from("x".as_ref()); //~ ERROR type annotations needed
22 //~^ ERROR type annotations needed
26 fn err_second_arg_pat() {
28 String
::from("x".as_ref()); //~ ERROR type annotations needed
29 //~^ ERROR type annotations needed
32 fn err_mid_arg_pat() {
37 String
::from("x".as_ref()); //~ ERROR type annotations needed
38 //~^ ERROR type annotations needed
45 fn err_first_local_pat() {
46 String
::from("x".as_ref()); //~ ERROR type annotations needed
47 //~^ ERROR type annotations needed
48 let _
= String
::from("x");
51 fn err_second_local_pat() {
52 let _
= String
::from("x");
53 String
::from("x".as_ref()); //~ ERROR type annotations needed
54 //~^ ERROR type annotations needed
57 fn err_mid_local_pat() {
58 let _
= String
::from("x");
59 let _
= String
::from("x");
60 let _
= String
::from("x");
61 let _
= String
::from("x");
62 String
::from("x".as_ref()); //~ ERROR type annotations needed
63 //~^ ERROR type annotations needed
64 let _
= String
::from("x");
65 let _
= String
::from("x");
66 let _
= String
::from("x");
67 let _
= String
::from("x");