File tree 1 file changed +4
-4
lines changed
src/doc/unstable-book/src/language-features
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ For example:
15
15
``` rust,compile_fail
16
16
#![feature(on_unimplemented)]
17
17
18
- #[rustc_on_unimplemented="a collection of type `{Self}` cannot be built from an \
19
- iterator over elements of type `{A }`"]
18
+ #[rustc_on_unimplemented="an iterator over elements of type `{A}` \
19
+ cannot be built from a collection of type `{Self }`"]
20
20
trait MyIterator<A> {
21
21
fn next(&mut self) -> A;
22
22
}
@@ -37,9 +37,9 @@ error[E0277]: the trait bound `&[{integer}]: MyIterator<char>` is not satisfied
37
37
--> <anon>:14:5
38
38
|
39
39
14 | iterate_chars(&[1, 2, 3][..]);
40
- | ^^^^^^^^^^^^^ the trait `MyIterator< char>` is not implemented for `&[{integer}]`
40
+ | ^^^^^^^^^^^^^ an iterator over elements of type ` char` cannot be built from a collection of type `&[{integer}]`
41
41
|
42
- = note: a collection of type `&[{integer}]` cannot be built from an iterator over elements of type `char `
42
+ = help: the trait `MyIterator<char>` is not implemented for `&[{integer}]`
43
43
= note: required by `iterate_chars`
44
44
45
45
error: aborting due to previous error
You can’t perform that action at this time.
0 commit comments