&format!(
"used non-generic {} `{}` for generic parameter",
opaque_param.kind.descr(),
arg,
),
what i did
-
I went to defination of
opaque_param.kind.descr(),
, it'sRegion
-
I check all
impl
forRegion
-
I don't find
Display
-
but I can use
.to_string()
on it
Ext Link: https://github.com/rust-lang/rust/blob/11bb80a92b4f46fa7dfa9148d0bdfc185a7621bd/compiler/rustc_borrowck/src/region_infer/opaque_types.rs#L406
1
共 1 条评论, 1 页
评论区
写评论已解决, 总之来说就是犯了看源码不看文档的病. 出来丢人了, 不好意思.