Skip to content

Commit

Permalink
Fix tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Aug 13, 2019
1 parent 3b6d46c commit 1e6f753
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/librustc/infer/error_reporting/need_type_info.rs
Expand Up @@ -175,7 +175,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
name,
))
}
Some(ty::TyS { sty: ty::TyKind::Closure(def_id, substs), .. }) => {
Some(ty::TyS { sty: ty::Closure(def_id, substs), .. }) => {
let msg = " for the closure".to_string();
let fn_sig = substs.closure_sig(*def_id, self.tcx);
let args = fn_sig.inputs()
Expand Down
Expand Up @@ -5,14 +5,14 @@

use std::io::Error;

fn make_unit() -> Result<(), Error> {
fn make_unit() -> Result<(), Error> {
Ok(())
}

fn main() {
let fut = async {
make_unit()?; //~ ERROR type annotations needed

Ok(())
};
}
4 changes: 2 additions & 2 deletions src/test/ui/inference/cannot-infer-async.rs
Expand Up @@ -3,14 +3,14 @@

use std::io::Error;

fn make_unit() -> Result<(), Error> {
fn make_unit() -> Result<(), Error> {
Ok(())
}

fn main() {
let fut = async {
make_unit()?; //~ ERROR type annotations needed

Ok(())
};
}

0 comments on commit 1e6f753

Please sign in to comment.