Skip to content

Instantly share code, notes, and snippets.

@vext01
Created September 11, 2019 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vext01/90b92bd035203690632caed6c0ee60ec to your computer and use it in GitHub Desktop.
Save vext01/90b92bd035203690632caed6c0ee60ec to your computer and use it in GitHub Desktop.
Type inference error
let def_ids: Arc<DefIdSet> = tcx.collect_and_partition_mono_items(LOCAL_CRATE).0;
let def_ids: DefIdSet = def_ids.borrow().clone();
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