You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/suggestions/impl-trait-with-missing-bounds.stderr
+5-5
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ LL | qux(constraint);
5
5
| ^^^^^^^^^^ `<impl Iterator as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
6
6
...
7
7
LL | fn qux(_: impl std::fmt::Debug) {}
8
-
| --- --------------- required by this bound in `qux`
8
+
| --------------- required by this bound in `qux`
9
9
|
10
10
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item`
11
11
help: introduce a type parameter with a trait bound instead of using `impl Trait`
@@ -20,7 +20,7 @@ LL | qux(constraint);
20
20
| ^^^^^^^^^^ `<impl Iterator as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
21
21
...
22
22
LL | fn qux(_: impl std::fmt::Debug) {}
23
-
| --- --------------- required by this bound in `qux`
23
+
| --------------- required by this bound in `qux`
24
24
|
25
25
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item`
26
26
help: introduce a type parameter with a trait bound instead of using `impl Trait`
@@ -35,7 +35,7 @@ LL | qux(constraint);
35
35
| ^^^^^^^^^^ `<impl Iterator as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
36
36
...
37
37
LL | fn qux(_: impl std::fmt::Debug) {}
38
-
| --- --------------- required by this bound in `qux`
38
+
| --------------- required by this bound in `qux`
39
39
|
40
40
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item`
41
41
help: introduce a type parameter with a trait bound instead of using `impl Trait`
@@ -50,7 +50,7 @@ LL | qux(constraint);
50
50
| ^^^^^^^^^^ `<impl Iterator as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
51
51
...
52
52
LL | fn qux(_: impl std::fmt::Debug) {}
53
-
| --- --------------- required by this bound in `qux`
53
+
| --------------- required by this bound in `qux`
54
54
|
55
55
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item`
56
56
help: introduce a type parameter with a trait bound instead of using `impl Trait`
@@ -65,7 +65,7 @@ LL | qux(constraint);
65
65
| ^^^^^^^^^^ `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
66
66
...
67
67
LL | fn qux(_: impl std::fmt::Debug) {}
68
-
| --- --------------- required by this bound in `qux`
68
+
| --------------- required by this bound in `qux`
69
69
|
70
70
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item`
71
71
help: introduce a type parameter with a trait bound instead of using `impl Trait`
0 commit comments