Skip to content

Commit efe7ee6

Browse files
author
Hunts Chen
committed
avoid ambiguous associated item in TryFrom implementations
This was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! See also: rust-lang/rust#57644
1 parent c1b4c3a commit efe7ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

capnpc/src/codegen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ fn generate_node(
19371937
))),
19381938
Indent(Box::new(Branch(vec![
19391939
Line(
1940-
"fn try_from(value: u16) -> ::core::result::Result<Self, Self::Error> {"
1940+
"fn try_from(value: u16) -> ::core::result::Result<Self, <{last_name} as ::core::convert::TryFrom<u16>>::Error> {"
19411941
.to_string(),
19421942
),
19431943
Indent(Box::new(Branch(vec![

0 commit comments

Comments
 (0)