where-it-impl-Display?
&format!(
"used non-generic {} `{}` for generic parameter",
opaque_param.kind.descr(),
arg,
),
what i did
-
I went to defination of arg,
, it's GenericArg
-
I check all impl
for GenericArg
-
I don't find Display
-
but I can use .to_string()
on it
How certain are you that it's a -> Region
rather than, say, a fn descr(&self) -> &'static str
?
2 Likes
That's was my mistake, I fixed the question now, I'm sorry.
The Region
in my first edition should be questioned with this LOC
But your link do forwarded me to the answer, thank you.
system
Closed
5
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.