aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-24 19:30:32 +0100
committerMartin Fischer <martin@push-f.com>2021-11-24 19:37:33 +0100
commit73b1ca899858b7079bec54a6e4f29941cbb8d0bd (patch)
treeff30b195bf51b6e217fd81cdb0190fc3be8e07e4 /src/lib.rs
parentdcf7a21372f22011a6081c26ade0a78fb2f10b5a (diff)
better error message for <Self as Foo>::X
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 277720e..00b9772 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -229,6 +229,9 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream {
n
)
}
+ MethodError::Transform(TransformError::QualifiedSelfAssociatedType) => {
+ return abort!(span, "dynamize does not support associated types of a qualified Self")
+ }
MethodError::UnconvertedAssocType => {
return abort!(span, "dynamize does not support associated types here")
}