We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6824535 commit eae3131Copy full SHA for eae3131
tests/cli-v2.rs
@@ -187,6 +187,24 @@ fn remove_override_toolchain_err_handling() {
187
});
188
}
189
190
+#[test]
191
+fn file_override_toolchain_err_handling() {
192
+ setup(&|config| {
193
+ let cwd = config.current_dir();
194
+ let toolchain_file = cwd.join("rust-toolchain");
195
+ rustup_utils::raw::write_file(&toolchain_file, "beta").unwrap();
196
+ expect_stderr_ok(config, &["rustc", "--version"], "info: installing component");
197
+ });
198
+}
199
+
200
201
+fn plus_override_toolchain_err_handling() {
202
203
+ expect_err(config, &["rustc", "+beta"],
204
+ for_host!("toolchain 'beta-{0}' is not installed"));
205
206
207
208
#[test]
209
fn bad_sha_on_manifest() {
210
setup(&|config| {
0 commit comments