File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,34 @@ fn multiple_versions() {
146
146
. with_stdout ( "https://github.com/rust-lang/crates.io-index#two-ver@0.2.0" )
147
147
. run ( ) ;
148
148
149
+ // Incomplete version.
150
+ p. cargo ( "pkgid two-ver@0" )
151
+ . with_status ( 101 )
152
+ . with_stderr (
153
+ "\
154
+ error: invalid package ID specification: `two-ver@0`
155
+
156
+ <tab>Did you mean `two-ver`?
157
+
158
+ Caused by:
159
+ cannot parse '0' as a semver
160
+ " ,
161
+ )
162
+ . run ( ) ;
163
+
164
+ // Incomplete version.
165
+ p. cargo ( "pkgid two-ver@0.2" )
166
+ . with_status ( 101 )
167
+ . with_stderr (
168
+ "\
169
+ error: invalid package ID specification: `two-ver@0.2`
170
+
171
+ Caused by:
172
+ cannot parse '0.2' as a semver
173
+ " ,
174
+ )
175
+ . run ( ) ;
176
+
149
177
// Ambiguous.
150
178
p. cargo ( "pkgid two-ver" )
151
179
. with_status ( 101 )
You can’t perform that action at this time.
0 commit comments