failures: ---- [ui] tests/ui/mismatched_types/issue-36053-2.rs stdout ---- diff of stderr: 27 | 28 = note: doesn't satisfy `_: Iterator` 29 | + = note: the full type name has been written to '$TEST_BUILD_DIR/mismatched_types/issue-36053-2/issue-36053-2.long-type-9552935326671514536.txt' 30 = note: the following trait bounds were not satisfied: 31 `<[closure@$DIR/issue-36053-2.rs:7:39: 7:48] as FnOnce<(&&str,)>>::Output = bool` 32 which is required by `Filter>, [closure@$DIR/issue-36053-2.rs:7:39: 7:48]>: Iterator` The actual stderr differed from the expected stderr. Actual stderr saved to /usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/mismatched_types/issue-36053-2/issue-36053-2.stderr To update references, rerun the tests and pass the `--bless` flag To only update this specific test, also pass `--test-args mismatched_types/issue-36053-2.rs` error: 1 errors occurred comparing output. status: exit status: 1 command: "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/mismatched_types/issue-36053-2" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/mismatched_types/issue-36053-2/auxiliary" stdout: none --- stderr ------------------------------- error[E0631]: type mismatch in closure arguments --> /usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs:7:32 | LL | once::<&str>("str").fuse().filter(|a: &str| true).count(); | ^^^^^^ --------- found signature defined here | | | expected due to this | = note: expected closure signature `for<'a> fn(&'a &str) -> _` found closure signature `for<'a> fn(&'a str) -> _` note: required by a bound in `filter` --> /rustc/FAKE_PREFIX/library/core/src/iter/traits/iterator.rs:922:5 help: consider borrowing the argument | LL | once::<&str>("str").fuse().filter(|a: &&str| true).count(); | + error[E0599]: the method `count` exists for struct `Filter>, [closure@issue-36053-2.rs:7:39]>`, but its trait bounds were not satisfied --> /usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs:7:55 | LL | once::<&str>("str").fuse().filter(|a: &str| true).count(); | --------- ^^^^^ method cannot be called due to unsatisfied trait bounds | | | doesn't satisfy `<_ as FnOnce<(&&str,)>>::Output = bool` | doesn't satisfy `_: FnMut<(&&str,)>` --> /rustc/FAKE_PREFIX/library/core/src/iter/adapters/filter.rs:18:1 | = note: doesn't satisfy `_: Iterator` | = note: the full type name has been written to '/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/mismatched_types/issue-36053-2/issue-36053-2.long-type-9552935326671514536.txt' = note: the following trait bounds were not satisfied: `<[closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs:7:39: 7:48] as FnOnce<(&&str,)>>::Output = bool` which is required by `Filter>, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs:7:39: 7:48]>: Iterator` `[closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs:7:39: 7:48]: FnMut<(&&str,)>` which is required by `Filter>, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs:7:39: 7:48]>: Iterator` `Filter>, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs:7:39: 7:48]>: Iterator` which is required by `&mut Filter>, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/mismatched_types/issue-36053-2.rs:7:39: 7:48]>: Iterator` error: aborting due to 2 previous errors Some errors have detailed explanations: E0599, E0631. For more information about an error, try `rustc --explain E0599`. ------------------------------------------ ---- [ui] tests/ui/recursion/issue-83150.rs stdout ---- diff of stderr: 12 error[E0275]: overflow evaluating the requirement `Map<&mut std::ops::Range, [closure@$DIR/issue-83150.rs:13:24: 13:27]>: Iterator` 13 | 14 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`issue_83150`) - = note: required for `&mut Map<&mut std::ops::Range, [closure@$DIR/issue-83150.rs:13:24: 13:27]>` to implement `Iterator` + = note: required for `&mut Map<&mut Range, [closure@issue-83150.rs:13:24]>` to implement `Iterator` + = note: the full type name has been written to '$TEST_BUILD_DIR/recursion/issue-83150/issue-83150.long-type-hash.txt' 16 = note: 65 redundant requirements hidden 17 = note: required for `&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<..., ...>, ...>, ...>, ...>, ...>, ...>, ...>` to implement `Iterator` 18 = note: the full type name has been written to '$TEST_BUILD_DIR/recursion/issue-83150/issue-83150.long-type-hash.txt' The actual stderr differed from the expected stderr. Actual stderr saved to /usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/recursion/issue-83150/issue-83150.stderr To update references, rerun the tests and pass the `--bless` flag To only update this specific test, also pass `--test-args recursion/issue-83150.rs` error: 1 errors occurred comparing output. status: exit status: 1 command: "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/recursion/issue-83150.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/recursion/issue-83150" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/recursion/issue-83150/auxiliary" "-Copt-level=0" stdout: none --- stderr ------------------------------- warning: function cannot return without recursing --> /usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/recursion/issue-83150.rs:12:1 | LL | fn func>(iter: &mut T) { //~ WARN function cannot return without recursing | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing LL | func(&mut iter.map(|x| x + 1)) | ------------------------------ recursive call site | = help: a `loop` may express intention better if this is on purpose = note: `#[warn(unconditional_recursion)]` on by default error[E0275]: overflow evaluating the requirement `Map<&mut std::ops::Range, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/recursion/issue-83150.rs:13:24: 13:27]>: Iterator` | = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`issue_83150`) = note: required for `&mut Map<&mut Range, [closure@issue-83150.rs:13:24]>` to implement `Iterator` = note: the full type name has been written to '/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/recursion/issue-83150/issue-83150.long-type-16082985540968311962.txt' = note: 65 redundant requirements hidden = note: required for `&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<&mut Map<..., ...>, ...>, ...>, ...>, ...>, ...>, ...>` to implement `Iterator` = note: the full type name has been written to '/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/recursion/issue-83150/issue-83150.long-type-9866420012035834535.txt' error: aborting due to previous error; 1 warning emitted For more information about this error, try `rustc --explain E0275`. ------------------------------------------ ---- [ui] tests/ui/typeck/issue-31173.rs stdout ---- diff of stderr: 42 | 43 = note: doesn't satisfy `_: Iterator` 44 | + = note: the full type name has been written to '$TEST_BUILD_DIR/typeck/issue-31173/issue-31173.long-type-16426221518650614982.txt' 45 = note: the following trait bounds were not satisfied: 46 `, [closure@$DIR/issue-31173.rs:7:21: 7:25]> as Iterator>::Item = &_` 47 which is required by `Cloned, [closure@$DIR/issue-31173.rs:7:21: 7:25]>>: Iterator` The actual stderr differed from the expected stderr. Actual stderr saved to /usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/typeck/issue-31173/issue-31173.stderr To update references, rerun the tests and pass the `--bless` flag To only update this specific test, also pass `--test-args typeck/issue-31173.rs` error: 1 errors occurred comparing output. status: exit status: 1 command: "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/typeck/issue-31173.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "--sysroot" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/typeck/issue-31173" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/typeck/issue-31173/auxiliary" stdout: none --- stderr ------------------------------- error[E0271]: expected `TakeWhile<&mut IntoIter, [closure@issue-31173.rs:7:21]>` to be an iterator that yields `&_`, but it yields `u8` --> /usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/typeck/issue-31173.rs:11:10 | LL | .cloned() //~ ERROR to be an iterator that yields `&_`, but it yields `u8` | ^^^^^^ expected `&_`, found `u8` | = note: expected reference `&_` found type `u8` note: the method call chain might not have had the expected associated types --> /usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/typeck/issue-31173.rs:3:20 | LL | pub fn get_tok(it: &mut IntoIter) { | ^^^^^^^^^^^^^^^^^ `Iterator::Item` is `u8` here ... LL | .take_while(|&x| { | __________- LL | | found_e = true; LL | | false LL | | }) | |__________- `Iterator::Item` remains `u8` here note: required by a bound in `cloned` --> /rustc/FAKE_PREFIX/library/core/src/iter/traits/iterator.rs:3358:5 error[E0599]: the method `collect` exists for struct `Cloned, [closure@issue-31173.rs:7:21]>>`, but its trait bounds were not satisfied --> /usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/typeck/issue-31173.rs:12:10 | LL | let temp: Vec = it | _________________________- LL | | .take_while(|&x| { LL | | found_e = true; LL | | false LL | | }) LL | | .cloned() //~ ERROR to be an iterator that yields `&_`, but it yields `u8` LL | | .collect(); //~ ERROR the method | | -^^^^^^^ method cannot be called due to unsatisfied trait bounds | |_________| | --> /rustc/FAKE_PREFIX/library/core/src/iter/adapters/take_while.rs:15:1 | = note: doesn't satisfy `<_ as Iterator>::Item = &_` --> /rustc/FAKE_PREFIX/library/core/src/iter/adapters/cloned.rs:17:1 | = note: doesn't satisfy `_: Iterator` | = note: the full type name has been written to '/usr/local/google/home/chiw/rust_source/orig/rust/build/x86_64-unknown-linux-gnu/test/ui/typeck/issue-31173/issue-31173.long-type-16426221518650614982.txt' = note: the following trait bounds were not satisfied: `, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/typeck/issue-31173.rs:7:21: 7:25]> as Iterator>::Item = &_` which is required by `Cloned, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/typeck/issue-31173.rs:7:21: 7:25]>>: Iterator` `Cloned, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/typeck/issue-31173.rs:7:21: 7:25]>>: Iterator` which is required by `&mut Cloned, [closure@/usr/local/google/home/chiw/rust_source/orig/rust/tests/ui/typeck/issue-31173.rs:7:21: 7:25]>>: Iterator` error: aborting due to 2 previous errors Some errors have detailed explanations: E0271, E0599. For more information about an error, try `rustc --explain E0271`. ------------------------------------------ failures: [ui] tests/ui/mismatched_types/issue-36053-2.rs [ui] tests/ui/recursion/issue-83150.rs [ui] tests/ui/typeck/issue-31173.rs test result: FAILED. 15132 passed; 3 failed; 128 ignored; 0 measured; 0 filtered out; finished in 47.40s Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu Build completed unsuccessfully in 0:01:43