about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/messages.ftl
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-20 12:17:42 -0400
committerMichael Goulet <michael@errs.io>2024-06-24 12:03:09 -0400
commit6521c3971d0818ab37f27f36f2eb99de420c780f (patch)
tree84d60a479b7024a868518e3dce3d89b1ed758849 /compiler/rustc_ast_lowering/messages.ftl
parentdd557d8c3720c82c488d6e2af3b7e19025f2473a (diff)
downloadrust-6521c3971d0818ab37f27f36f2eb99de420c780f.tar.gz
rust-6521c3971d0818ab37f27f36f2eb99de420c780f.zip
Deny use<> for RPITITs
Diffstat (limited to 'compiler/rustc_ast_lowering/messages.ftl')
-rw-r--r--compiler/rustc_ast_lowering/messages.ftl3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/messages.ftl b/compiler/rustc_ast_lowering/messages.ftl
index 7d81e45d314..57b9d904dc2 100644
--- a/compiler/rustc_ast_lowering/messages.ftl
+++ b/compiler/rustc_ast_lowering/messages.ftl
@@ -130,6 +130,9 @@ ast_lowering_never_pattern_with_guard =
 
 ast_lowering_no_precise_captures_on_apit = `use<...>` precise capturing syntax not allowed in argument-position `impl Trait`
 
+ast_lowering_no_precise_captures_on_rpitit = `use<...>` precise capturing syntax is currently not allowed in return-position `impl Trait` in traits
+    .note = currently, return-position `impl Trait` in traits and trait implementations capture all lifetimes in scope
+
 ast_lowering_previously_used_here = previously used here
 
 ast_lowering_register1 = register `{$reg1_name}`