mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
Fix tidy
This commit is contained in:
parent
3b6d46c640
commit
1e6f753762
@ -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()
|
||||
|
@ -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(())
|
||||
};
|
||||
}
|
||||
|
@ -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(())
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user