summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generator/generator-yielding-or-returning-itself.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/generator/generator-yielding-or-returning-itself.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/generator/generator-yielding-or-returning-itself.stderr')
-rw-r--r--src/test/ui/generator/generator-yielding-or-returning-itself.stderr53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/test/ui/generator/generator-yielding-or-returning-itself.stderr b/src/test/ui/generator/generator-yielding-or-returning-itself.stderr
deleted file mode 100644
index 8f5d2429a..000000000
--- a/src/test/ui/generator/generator-yielding-or-returning-itself.stderr
+++ /dev/null
@@ -1,53 +0,0 @@
-error[E0271]: type mismatch resolving `<[generator@$DIR/generator-yielding-or-returning-itself.rs:15:34: 15:36] as Generator>::Return == [generator@$DIR/generator-yielding-or-returning-itself.rs:15:34: 15:36]`
- --> $DIR/generator-yielding-or-returning-itself.rs:15:34
- |
-LL | want_cyclic_generator_return(|| {
- | _____----------------------------_^
- | | |
- | | required by a bound introduced by this call
-LL | |
-LL | | if false { yield None.unwrap(); }
-LL | | None.unwrap()
-LL | | })
- | |_____^ cyclic type of infinite size
- |
- = note: closures cannot capture themselves or take themselves as argument;
- this error may be the result of a recent compiler bug-fix,
- see issue #46062 <https://github.com/rust-lang/rust/issues/46062>
- for more information
-note: required by a bound in `want_cyclic_generator_return`
- --> $DIR/generator-yielding-or-returning-itself.rs:10:36
- |
-LL | pub fn want_cyclic_generator_return<T>(_: T)
- | ---------------------------- required by a bound in this
-LL | where T: Generator<Yield = (), Return = T>
- | ^^^^^^^^^^ required by this bound in `want_cyclic_generator_return`
-
-error[E0271]: type mismatch resolving `<[generator@$DIR/generator-yielding-or-returning-itself.rs:28:33: 28:35] as Generator>::Yield == [generator@$DIR/generator-yielding-or-returning-itself.rs:28:33: 28:35]`
- --> $DIR/generator-yielding-or-returning-itself.rs:28:33
- |
-LL | want_cyclic_generator_yield(|| {
- | _____---------------------------_^
- | | |
- | | required by a bound introduced by this call
-LL | |
-LL | | if false { yield None.unwrap(); }
-LL | | None.unwrap()
-LL | | })
- | |_____^ cyclic type of infinite size
- |
- = note: closures cannot capture themselves or take themselves as argument;
- this error may be the result of a recent compiler bug-fix,
- see issue #46062 <https://github.com/rust-lang/rust/issues/46062>
- for more information
-note: required by a bound in `want_cyclic_generator_yield`
- --> $DIR/generator-yielding-or-returning-itself.rs:23:24
- |
-LL | pub fn want_cyclic_generator_yield<T>(_: T)
- | --------------------------- required by a bound in this
-LL | where T: Generator<Yield = T, Return = ()>
- | ^^^^^^^^^ required by this bound in `want_cyclic_generator_yield`
-
-error: aborting due to 2 previous errors
-
-For more information about this error, try `rustc --explain E0271`.