1
1
error[E0423]: expected value, found struct `String`
2
- --> $DIR/issue-22692 .rs:2 :13
2
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep .rs:10 :13
3
3
|
4
4
LL | let _ = String.new();
5
5
| ^^^^^^
@@ -10,7 +10,7 @@ LL | let _ = String::new();
10
10
| ~~
11
11
12
12
error[E0423]: expected value, found struct `String`
13
- --> $DIR/issue-22692 .rs:6 :13
13
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep .rs:14 :13
14
14
|
15
15
LL | let _ = String.default;
16
16
| ^^^^^^
@@ -21,7 +21,7 @@ LL | let _ = String::default;
21
21
| ~~
22
22
23
23
error[E0423]: expected value, found struct `Vec`
24
- --> $DIR/issue-22692 .rs:10 :13
24
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep .rs:18 :13
25
25
|
26
26
LL | let _ = Vec::<()>.with_capacity(1);
27
27
| ^^^^^^^^^
@@ -31,8 +31,41 @@ help: use the path separator to refer to an item
31
31
LL | let _ = Vec::<()>::with_capacity(1);
32
32
| ~~
33
33
34
+ error[E0423]: expected value, found type alias `Alias`
35
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:22:13
36
+ |
37
+ LL | let _ = Alias.new();
38
+ | ^^^^^
39
+ |
40
+ help: use the path separator to refer to an item
41
+ |
42
+ LL | let _ = Alias::new();
43
+ | ~~
44
+
45
+ error[E0423]: expected value, found type alias `Alias`
46
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:26:13
47
+ |
48
+ LL | let _ = Alias.default;
49
+ | ^^^^^
50
+ |
51
+ help: use the path separator to refer to an item
52
+ |
53
+ LL | let _ = Alias::default;
54
+ | ~~
55
+
56
+ error[E0423]: expected value, found module `foo`
57
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:30:13
58
+ |
59
+ LL | let _ = foo.bar;
60
+ | ^^^
61
+ |
62
+ help: use the path separator to refer to an item
63
+ |
64
+ LL | let _ = foo::bar;
65
+ | ~~
66
+
34
67
error[E0423]: expected value, found struct `std::cell::Cell`
35
- --> $DIR/issue-22692 .rs:17 :9
68
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep .rs:37 :9
36
69
|
37
70
LL | ::std::cell::Cell
38
71
| ^^^^^^^^^^^^^^^^^
@@ -47,7 +80,7 @@ LL | <Type!()>::get();
47
80
| ~~~~~~~~~~~
48
81
49
82
error[E0423]: expected value, found struct `std::cell::Cell`
50
- --> $DIR/issue-22692 .rs:17 :9
83
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep .rs:37 :9
51
84
|
52
85
LL | ::std::cell::Cell
53
86
| ^^^^^^^^^^^^^^^^^
@@ -62,7 +95,7 @@ LL | <Type! {}>::get;
62
95
| ~~~~~~~~~~~~
63
96
64
97
error[E0423]: expected value, found struct `Vec`
65
- --> $DIR/issue-22692 .rs:26 :9
98
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep .rs:46 :9
66
99
|
67
100
LL | Vec.new()
68
101
| ^^^
@@ -77,7 +110,7 @@ LL | Vec::new()
77
110
| ~~
78
111
79
112
error[E0423]: expected value, found struct `Vec`
80
- --> $DIR/issue-22692 .rs:31 :9
113
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep .rs:51 :9
81
114
|
82
115
LL | Vec.new
83
116
| ^^^
@@ -92,7 +125,7 @@ LL | Vec::new
92
125
| ~~
93
126
94
127
error[E0423]: expected value, found struct `std::cell::Cell`
95
- --> $DIR/issue-22692 .rs:17 :9
128
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep .rs:37 :9
96
129
|
97
130
LL | ::std::cell::Cell
98
131
| ^^^^^^^^^^^^^^^^^
@@ -106,6 +139,6 @@ help: use the path separator to refer to an item
106
139
LL | <Type!()>::new(0)
107
140
| ~~~~~~~~~~~
108
141
109
- error: aborting due to 8 previous errors
142
+ error: aborting due to 11 previous errors
110
143
111
144
For more information about this error, try `rustc --explain E0423`.
0 commit comments