Created
September 11, 2019 16:07
-
-
Save vext01/90b92bd035203690632caed6c0ee60ec to your computer and use it in GitHub Desktop.
Type inference error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let def_ids: Arc<DefIdSet> = tcx.collect_and_partition_mono_items(LOCAL_CRATE).0; | |
let def_ids: DefIdSet = def_ids.borrow().clone(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0282]: type annotations needed | |
--> src/librustc_interface/passes.rs:1108:50 | |
| | |
1108 | let def_ids: DefIdSet = def_ids.borrow().clone(); | |
| ^^^^^ cannot infer type for `Borrowed` | |
| | |
= note: type must be known at this point | |
error: aborting due to previous error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment