1 parent 58c88ee commit 442ab98Copy full SHA for 442ab98
1 file changed
splat-overload/src/lib.rs
@@ -185,6 +185,12 @@ fn generate_free_functions(functions: Vec<ItemFn>) -> TokenStream {
185
}
186
187
let generated = quote! {
188
+ #[diagnostic::on_unimplemented(
189
+ message = "Missing overload for arguments `{Self}`",
190
+ label = "these arguments do not match any overload",
191
+ note = "Check for extra or missing arguments, and argument types",
192
+ note = "Consider adding a new overload in the overload!{{ ... }} block",
193
+ )]
194
trait #trait_name: std::marker::Tuple {
195
type Output;
196
fn call(self) -> Self::Output;
0 commit comments