Add a note about feature(explicit_generic_args_with_impl_trait) to the relevant error message
This commit is contained in:
parent
3e3890c9d4
commit
048e1c942d
6 changed files with 32 additions and 0 deletions
|
@ -672,6 +672,17 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||
err.span_label(span, "explicit generic argument not allowed");
|
||||
}
|
||||
|
||||
err.note(
|
||||
"see issue #83701 <https://github.com/rust-lang/rust/issues/83701> \
|
||||
for more information",
|
||||
);
|
||||
if tcx.sess.is_nightly_build() {
|
||||
err.help(
|
||||
"add `#![feature(explicit_generic_args_with_impl_trait)]` \
|
||||
to the crate attributes to enable",
|
||||
);
|
||||
}
|
||||
|
||||
err.emit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue