提交 88f810f5 编写于 作者: F F001

inverting speculative flag

上级 f837c34a
......@@ -568,7 +568,7 @@ fn ast_type_binding_to_poly_projection_predicate(
}
tcx.check_stability(assoc_ty.def_id, Some(ref_id), binding.span);
if speculative {
if !speculative {
dup_bindings.entry(assoc_ty.def_id)
.and_modify(|prev_span| {
let mut err = self.tcx().struct_span_lint_node(
......
......@@ -10,3 +10,14 @@ LL | fn test() -> Box<Iterator<Item = (), Item = Unit>> {
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #50589 <https://github.com/rust-lang/rust/issues/50589>
warning: associated type binding `Item` specified more than once
--> $DIR/issue-50589-multiple-associated-types.rs:17:39
|
LL | fn test() -> Box<Iterator<Item = (), Item = Unit>> {
| --------- ^^^^^^^^^^^ used more than once
| |
| first use of `Item`
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #50589 <https://github.com/rust-lang/rust/issues/50589>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册