diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-41880.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-41880.stderr b/src/test/ui/issues/issue-41880.stderr new file mode 100644 index 000000000..fd694df30 --- /dev/null +++ b/src/test/ui/issues/issue-41880.stderr @@ -0,0 +1,12 @@ +error[E0599]: no method named `iter` found for struct `Iterate` in the current scope + --> $DIR/issue-41880.rs:27:24 + | +LL | pub struct Iterate<T, F> { + | ------------------------ method `iter` not found for this struct +... +LL | println!("{:?}", a.iter().take(10).collect::<Vec<usize>>()); + | ^^^^ method not found in `Iterate<{integer}, [closure@$DIR/issue-41880.rs:26:24: 26:27]>` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0599`. |