Update #83739 with type of the item specified
This commit is contained in:
parent
9b6c7ffa06
commit
e66f241b80
2 changed files with 11 additions and 3 deletions
|
@ -839,7 +839,15 @@ fn convert_item(tcx: TyCtxt<'_>, item_id: hir::ItemId) {
|
|||
if let hir::TyKind::TraitObject(..) = ty.kind {
|
||||
let mut visitor = PlaceholderHirTyCollector::default();
|
||||
visitor.visit_item(it);
|
||||
placeholder_type_error(tcx, None, &[], visitor.0, false, None);
|
||||
placeholder_type_error(
|
||||
tcx,
|
||||
None,
|
||||
&[],
|
||||
visitor.0,
|
||||
false,
|
||||
None,
|
||||
it.kind.descr(),
|
||||
);
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
|
||||
error[E0121]: the type placeholder `_` is not allowed within types on item signatures for constant items
|
||||
--> $DIR/issue-75889.rs:3:24
|
||||
|
|
||||
LL | const FOO: dyn Fn() -> _ = "";
|
||||
| ^ not allowed in type signatures
|
||||
|
||||
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
|
||||
error[E0121]: the type placeholder `_` is not allowed within types on item signatures for static items
|
||||
--> $DIR/issue-75889.rs:4:25
|
||||
|
|
||||
LL | static BOO: dyn Fn() -> _ = "";
|
||||
|
|
Loading…
Add table
Reference in a new issue