We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents caf3d3e + ce6f987 commit d61be63Copy full SHA for d61be63
src/test/ui/methods/issues/issue-84495.rs
@@ -0,0 +1,4 @@
1
+fn main() {
2
+ let x: i32 = 1;
3
+ println!("{:?}", x.count()); //~ ERROR is not an iterator
4
+}
src/test/ui/methods/issues/issue-84495.stderr
@@ -0,0 +1,13 @@
+error[E0599]: `i32` is not an iterator
+ --> $DIR/issue-84495.rs:3:24
+ |
+LL | println!("{:?}", x.count());
5
+ | ^^^^^ `i32` is not an iterator
6
7
+ = note: the following trait bounds were not satisfied:
8
+ `i32: Iterator`
9
+ which is required by `&mut i32: Iterator`
10
+
11
+error: aborting due to previous error
12
13
+For more information about this error, try `rustc --explain E0599`.
0 commit comments