Skip to content

Commit f1fbf79

Browse files
committed
Amend nested impl Trait error message
1 parent 70e1f4f commit f1fbf79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/ui/nested_impl_trait.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0666]: nested `impl Trait` is not allowed
44
16 | fn bad_in_ret_position(x: impl Into<u32>) -> impl Into<impl Debug> { x }
55
| ----------^^^^^^^^^^-
66
| | |
7-
| | devilishly nested `impl Trait` here
7+
| | nested `impl Trait` here
88
| outer `impl Trait`
99

1010
error[E0666]: nested `impl Trait` is not allowed
@@ -13,7 +13,7 @@ error[E0666]: nested `impl Trait` is not allowed
1313
19 | fn bad_in_fn_syntax(x: fn() -> impl Into<impl Debug>) {}
1414
| ----------^^^^^^^^^^-
1515
| | |
16-
| | devilishly nested `impl Trait` here
16+
| | nested `impl Trait` here
1717
| outer `impl Trait`
1818

1919
error[E0666]: nested `impl Trait` is not allowed
@@ -22,7 +22,7 @@ error[E0666]: nested `impl Trait` is not allowed
2222
23 | fn bad_in_arg_position(_: impl Into<impl Debug>) { }
2323
| ----------^^^^^^^^^^-
2424
| | |
25-
| | devilishly nested `impl Trait` here
25+
| | nested `impl Trait` here
2626
| outer `impl Trait`
2727

2828
error[E0666]: nested `impl Trait` is not allowed
@@ -31,7 +31,7 @@ error[E0666]: nested `impl Trait` is not allowed
3131
28 | fn bad(x: impl Into<u32>) -> impl Into<impl Debug> { x }
3232
| ----------^^^^^^^^^^-
3333
| | |
34-
| | devilishly nested `impl Trait` here
34+
| | nested `impl Trait` here
3535
| outer `impl Trait`
3636

3737
error[E0562]: `impl Trait` not allowed outside of function and inherent method return types

0 commit comments

Comments
 (0)