This commit is contained in:
Esteban Küber 2020-01-13 17:20:28 -08:00
parent e1dd8a9095
commit 93293c56e8

View File

@ -3038,9 +3038,7 @@ fn note_obligation_cause_code<T>(
ObligationCauseCode::TrivialBound => {
err.help("see issue #48214");
if tcx.sess.opts.unstable_features.is_nightly_build() {
err.help(
"add `#![feature(trivial_bounds)]` to the crate attributes to enable",
);
err.help("add `#![feature(trivial_bounds)]` to the crate attributes to enable");
}
}
ObligationCauseCode::AssocTypeBound(ref data) => {