File tree 1 file changed +2
-2
lines changed
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 }
5
5
6
6
fn bad_in_ret_position ( x : impl Into < u32 > ) -> impl Into < impl Debug > { x }
7
7
//~^ 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
9
9
10
10
fn bad_in_fn_syntax ( x : fn ( ) -> impl Into < impl Debug > ) { }
11
11
//~^ ERROR nested `impl Trait` is not allowed
@@ -18,7 +18,7 @@ struct X;
18
18
impl X {
19
19
fn bad ( x : impl Into < u32 > ) -> impl Into < impl Debug > { x }
20
20
//~^ 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
22
22
}
23
23
24
24
fn allowed_in_assoc_type ( ) -> impl Iterator < Item =impl Fn ( ) > {
You can’t perform that action at this time.
0 commit comments