diff options
| author | bors <bors@rust-lang.org> | 2025-06-09 02:20:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-06-09 02:20:44 +0000 |
| commit | 334ba812755b974ecc46713fcdd38836b6182746 (patch) | |
| tree | 97733c915e4e9299e6da38942a60d2fb2645e72a /tests/ui/diagnostic-width/impl-trait-invalid-iterator-error.stderr | |
| parent | c31cccb7b5cc098b1a8c1794ed38d7fdbec0ccb0 (diff) | |
| parent | e91f985717687e7a960121667cf7d8f8010a6cd0 (diff) | |
| download | rust-334ba812755b974ecc46713fcdd38836b6182746.tar.gz rust-334ba812755b974ecc46713fcdd38836b6182746.zip | |
Auto merge of #142220 - workingjubilee:rollup-idgfpof, r=workingjubilee
Rollup of 12 pull requests Successful merges: - rust-lang/rust#141803 (Remove rustc's notion of "preferred" alignment AKA `__alignof`) - rust-lang/rust#142053 (Add new Tier-3 targets: `loongarch32-unknown-none*`) - rust-lang/rust#142089 (Replace all uses of sysroot_candidates with get_or_default_sysroot) - rust-lang/rust#142108 (compiler: Add track_caller to AbiMapping::unwrap) - rust-lang/rust#142132 (`tests/ui`: A New Order [6/N]) - rust-lang/rust#142162 (UnsafePinned: update get() docs and signature to allow shared mutation) - rust-lang/rust#142171 (`tests/ui`: A New Order [7/N]) - rust-lang/rust#142179 (store `target.min_global_align` as an `Align`) - rust-lang/rust#142183 (Added test for 30904) - rust-lang/rust#142194 (Remove all unused feature gates from the compiler) - rust-lang/rust#142199 (Do not free disk space in the `mingw-check-tidy` job) - rust-lang/rust#142210 (Run `mingw-check-tidy` on auto builds) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/ui/diagnostic-width/impl-trait-invalid-iterator-error.stderr')
| -rw-r--r-- | tests/ui/diagnostic-width/impl-trait-invalid-iterator-error.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/diagnostic-width/impl-trait-invalid-iterator-error.stderr b/tests/ui/diagnostic-width/impl-trait-invalid-iterator-error.stderr new file mode 100644 index 00000000000..0146fa7a28b --- /dev/null +++ b/tests/ui/diagnostic-width/impl-trait-invalid-iterator-error.stderr @@ -0,0 +1,11 @@ +error[E0277]: `()` is not an iterator + --> $DIR/impl-trait-invalid-iterator-error.rs:3:33 + | +LL | fn will_ice(something: &u32) -> impl Iterator<Item = &u32> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator + | + = help: the trait `Iterator` is not implemented for `()` + +error: aborting due to 1 previous error + +For more information about this error, try `rustc --explain E0277`. |
