3 //~^ ERROR expected value, found struct `String`
4 //~| HELP use the path separator
6 let _ = String.default;
7 //~^ ERROR expected value, found struct `String`
8 //~| HELP use the path separator
10 let _ = Vec::<()>.with_capacity(1);
11 //~^ ERROR expected value, found struct `Vec`
12 //~| HELP use the path separator
18 //~^ ERROR expected value, found struct `std::cell::Cell`
19 //~| ERROR expected value, found struct `std::cell::Cell`
20 //~| ERROR expected value, found struct `std::cell::Cell`
27 //~^ ERROR expected value, found struct `Vec`
28 //~| HELP use the path separator
32 //~^ ERROR expected value, found struct `Vec`
33 //~| HELP use the path separator
37 //~^ HELP use the path separator
41 fn interaction_with_macros() {
43 // Verify that we do not only suggest to replace `.` with `::` if the receiver is a
44 // macro call but that we also correctly suggest to surround it with angle brackets.
48 //~^ HELP use the path separator
51 //~^ HELP use the path separator
54 // Ensure that the suggestion is shown for expressions inside of macro definitions.
57 let _ = create!(type method);
58 let _ = create!(type field);
59 let _ = create!(macro method);