mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Add a test for #2067
This commit is contained in:
parent
0d359eacd7
commit
8b7defdb19
@ -163,3 +163,10 @@ fn issue1392() {
|
||||
}
|
||||
"#.trim());
|
||||
}
|
||||
|
||||
// #2067
|
||||
impl Settings {
|
||||
fn save(&self) -> Result<()> {
|
||||
let mut file = File::create(&settings_path).chain_err(|| ErrorKind::WriteError(settings_path.clone()))?;
|
||||
}
|
||||
}
|
||||
|
@ -183,3 +183,11 @@ fn issue1392() {
|
||||
"#.trim(),
|
||||
);
|
||||
}
|
||||
|
||||
// #2067
|
||||
impl Settings {
|
||||
fn save(&self) -> Result<()> {
|
||||
let mut file = File::create(&settings_path)
|
||||
.chain_err(|| ErrorKind::WriteError(settings_path.clone()))?;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user