diff options
| author | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-01-08 23:30:19 -0500 |
|---|---|---|
| committer | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-02-17 14:09:21 -0500 |
| commit | 3d19c8defd776eb7e9e113cf49c3e1d2f51e408e (patch) | |
| tree | 1a033554d1cbe17bd8dda1f54886017acd4b3548 /compiler/rustc_trait_selection | |
| parent | 30b3f35c420694a4f24e5a4df00f06073f4f3a37 (diff) | |
| download | rust-3d19c8defd776eb7e9e113cf49c3e1d2f51e408e.tar.gz rust-3d19c8defd776eb7e9e113cf49c3e1d2f51e408e.zip | |
Suggest copying trait associated type bounds on lifetime error
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs index 40cb9647a35..6068b90aef8 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs @@ -1932,7 +1932,8 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { | ObligationCauseCode::AwaitableExpr(_) | ObligationCauseCode::ForLoopIterator | ObligationCauseCode::QuestionMark - | ObligationCauseCode::LetElse => {} + | ObligationCauseCode::LetElse + | ObligationCauseCode::CheckAssociatedTypeBounds { .. } => {} ObligationCauseCode::SliceOrArrayElem => { err.note("slice and array elements must have `Sized` type"); } |
