about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/errors.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-02-06 19:48:16 +0000
committerMichael Goulet <michael@errs.io>2024-02-10 03:31:34 +0000
commitfde695a2d19fc13a5773b8e9168341c67a21912e (patch)
tree551d9a53ee5d8bf059ad2fc8b2161d020fc43775 /compiler/rustc_ast_lowering/src/errors.rs
parent973bbfbd23df736dd3a257e42c6cd7e3fe5b0281 (diff)
downloadrust-fde695a2d19fc13a5773b8e9168341c67a21912e.tar.gz
rust-fde695a2d19fc13a5773b8e9168341c67a21912e.zip
Add a helpful suggestion
Diffstat (limited to 'compiler/rustc_ast_lowering/src/errors.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/errors.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/errors.rs b/compiler/rustc_ast_lowering/src/errors.rs
index fba8ea206f1..274e6b7458c 100644
--- a/compiler/rustc_ast_lowering/src/errors.rs
+++ b/compiler/rustc_ast_lowering/src/errors.rs
@@ -98,6 +98,8 @@ pub struct MisplacedImplTrait<'a> {
 pub struct MisplacedAssocTyBinding {
     #[primary_span]
     pub span: Span,
+    #[suggestion(code = " = impl", applicability = "maybe-incorrect", style = "verbose")]
+    pub suggestion: Option<Span>,
 }
 
 #[derive(Diagnostic, Clone, Copy)]