This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-04-29 19:47:38 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
14e59bb317
rust
/
tests
/
ui
/
inference
/
cannot-infer-closure.rs
8 lines
124 B
Rust
Raw
Normal View
History
Unescape
Escape
When needing type annotations in local bindings, account for impl Trait and closures Do not suggest nonsensical types when the type inference is failing on `impl Trait` or anonymous closures.
2019-08-12 23:50:46 +00:00
fn
main
(
)
{
Resolve types when suggesting boxed closure
2019-08-13 01:12:19 +00:00
let
x
=
|
a
:
(
)
,
b
:
(
)
|
{
Better rustc_on_unimplemented, and UI test fixes
2021-04-17 18:56:07 +00:00
Err
(
a
)
?
;
selection failure: recompute applicable impls
2022-10-19 15:17:19 +00:00
Ok
(
b
)
//~^ ERROR type annotations needed
When needing type annotations in local bindings, account for impl Trait and closures Do not suggest nonsensical types when the type inference is failing on `impl Trait` or anonymous closures.
2019-08-12 23:50:46 +00:00
}
;
}
Reference in New Issue
Copy Permalink