thread 'rustc' panicked at 'missing associated type', compiler/rustc_typeck/src/astconv/mod.rs:1886:14
stack backtrace:
0: rust_begin_unwind
at /rustc/498eeb72f590e518e19746b346be53713689e207/library/std/src/panicking.rs:577:5
1: core::panicking::panic_fmt
at /rustc/498eeb72f590e518e19746b346be53713689e207/library/core/src/panicking.rs:135:14
2: core::panicking::panic_display
at /rustc/498eeb72f590e518e19746b346be53713689e207/library/core/src/panicking.rs:65:5
3: core::panicking::panic_str
at /rustc/498eeb72f590e518e19746b346be53713689e207/library/core/src/panicking.rs:56:5
4: core::option::expect_failed
at /rustc/498eeb72f590e518e19746b346be53713689e207/library/core/src/option.rs:1840:5
5: <dyn rustc_typeck::astconv::AstConv>::associated_path_to_ty
6: <dyn rustc_typeck::astconv::AstConv>::ast_ty_to_ty_inner
7: rustc_typeck::collect::type_of::type_of
8: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::type_of
9: <rustc_typeck::collect::CollectItemTypesVisitor as rustc_hir::intravisit::Visitor>::visit_trait_item
10: <rustc_middle::hir::map::Map>::visit_item_likes_in_module::<rustc_hir::intravisit::DeepVisitor<rustc_typeck::collect::CollectItemTypesVisitor>>
11: rustc_typeck::collect::collect_mod_item_types
12: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::LocalDefId, ()>>
13: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::collect_mod_item_types, rustc_query_impl::plumbing::QueryCtxt>
14: <rustc_middle::hir::map::Map>::for_each_module::<rustc_typeck::check_crate::{closure#0}::{closure#0}::{closure#0}>
15: <rustc_session::session::Session>::track_errors::<rustc_typeck::check_crate::{closure#0}, ()>
16: rustc_typeck::check_crate
17: rustc_interface::passes::analysis
18: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::plumbing::QueryCtxt, rustc_query_system::query::caches::DefaultCache<(), core::result::Result<(), rustc_errors::ErrorReported>>>
19: rustc_query_system::query::plumbing::get_query::<rustc_query_impl::queries::analysis, rustc_query_impl::plumbing::QueryCtxt>
20: <rustc_interface::passes::QueryContext>::enter::<rustc_driver::run_compiler::{closure#1}::{closure#2}::{closure#3}, core::result::Result<(), rustc_errors::ErrorReported>>
21: <rustc_interface::interface::Compiler>::enter::<rustc_driver::run_compiler::{closure#1}::{closure#2}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_errors::ErrorReported>>
22: rustc_span::with_source_map::<core::result::Result<(), rustc_errors::ErrorReported>, rustc_interface::interface::create_compiler_and_run<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>::{closure#1}>
23: rustc_interface::interface::create_compiler_and_run::<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Code
Meta
rust version:
(tried in the play.rust-lang.org playground)
This compiles successfully on the stable and beta channels.
Error output
Backtrace