Closed chengniansun closed 3 years ago
Output on 1.46:
error[E0223]: ambiguous associated type
--> <source>:3:5
|
3 | S::A::<f> {}
| ^^^^^^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0223`.
@rustbot modify labels: +regression-from-stable-to-stable
Code
Meta
rustc --version --verbose
:Error output
Backtrace
``` thread 'rustc' panicked at 'Box', /rustc/ffa2e7ae8fbf9badc035740db949b9dae271c29f/compiler/rustc_errors/src/lib.rs:891:9
stack backtrace:
0: std::panicking::begin_panic
1: rustc_errors::HandlerInner::span_bug
2: rustc_errors::Handler::span_bug
3: rustc_middle::util::bug::opt_span_bug_fmt::{{closure}}
4: rustc_middle::ty::context::tls::with_opt::{{closure}}
5: rustc_middle::ty::context::tls::with_opt
6: rustc_middle::util::bug::opt_span_bug_fmt
7: rustc_middle::util::bug::span_bug_fmt
8: rustc_typeck::collect::type_of::opt_const_param_of
9: rustc_middle::ty::query:: for rustc_middle::ty::query::queries::opt_const_param_of>::compute
10: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
11: rustc_data_structures::stack::ensure_sufficient_stack
12: rustc_query_system::query::plumbing::get_query_impl
13: rustc_typeck::check::typeck
14: rustc_middle::ty::query:: for rustc_middle::ty::query::queries::typeck>::compute
15: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
16: rustc_data_structures::stack::ensure_sufficient_stack
17: rustc_query_system::query::plumbing::get_query_impl
18: rustc_query_system::query::plumbing::ensure_query_impl
19: rustc_typeck::check::typeck_item_bodies
20: rustc_middle::ty::query:: for rustc_middle::ty::query::queries::typeck_item_bodies>::compute
21: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
22: rustc_data_structures::stack::ensure_sufficient_stack
23: rustc_query_system::query::plumbing::get_query_impl
24: rustc_typeck::check_crate
25: rustc_interface::passes::analysis
26: rustc_middle::ty::query:: for rustc_middle::ty::query::queries::analysis>::compute
27: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
28: rustc_middle::ty::query::plumbing::::start_query::{{closure}}::{{closure}}::{{closure}}
29: rustc_query_system::query::plumbing::get_query_impl
30: rustc_interface::passes::QueryContext::enter
31: rustc_interface::queries::::enter
32: rustc_span::with_source_map
33: rustc_interface::interface::create_compiler_and_run
34: scoped_tls::ScopedKey::set
```
NOTE: The bug is found by our work-in-progress compiler testing tool Kira, and the test program is reduced/minimized by Perses