File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ fn fine(x: impl Into<u32>) -> impl Into<u32> { x }
55
66fn bad_in_ret_position ( x : impl Into < u32 > ) -> impl Into < impl Debug > { x }
77//~^ ERROR nested `impl Trait` is not allowed
8- //~| ERROR the trait bound `impl Debug: From <impl Into<u32> >` is not satisfied
8+ //~| ERROR the trait bound `impl Into<u32>: Into <impl Debug >` is not satisfied
99
1010fn bad_in_fn_syntax ( x : fn ( ) -> impl Into < impl Debug > ) { }
1111//~^ ERROR nested `impl Trait` is not allowed
@@ -18,7 +18,7 @@ struct X;
1818impl X {
1919 fn bad ( x : impl Into < u32 > ) -> impl Into < impl Debug > { x }
2020 //~^ ERROR nested `impl Trait` is not allowed
21- //~| ERROR the trait bound `impl Debug: From <impl Into<u32> >` is not satisfied
21+ //~| ERROR the trait bound `impl Into<u32>: Into <impl Debug >` is not satisfied
2222}
2323
2424fn allowed_in_assoc_type ( ) -> impl Iterator < Item =impl Fn ( ) > {
You can’t perform that action at this time.
0 commit comments