Skip to content

Commit c9c9876

Browse files
committed
Bless test
1 parent ae0212e commit c9c9876

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

tests/ui/typeck/typeck_type_placeholder_item.rs

-1
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,4 @@ fn evens_squared(n: usize) -> _ {
228228

229229
const _: _ = (1..10).filter(|x| x % 2 == 0).map(|x| x * x);
230230
//~^ ERROR the trait bound
231-
//~| ERROR the trait bound
232231
//~| ERROR the placeholder

tests/ui/typeck/typeck_type_placeholder_item.stderr

+1-14
Original file line numberDiff line numberDiff line change
@@ -437,19 +437,6 @@ LL | fn evens_squared(n: usize) -> _ {
437437
| not allowed in type signatures
438438
| help: replace with an appropriate return type: `impl Iterator<Item = usize>`
439439

440-
error[E0277]: the trait bound `std::ops::Range<{integer}>: Iterator` is not satisfied
441-
--> $DIR/typeck_type_placeholder_item.rs:229:22
442-
|
443-
LL | const _: _ = (1..10).filter(|x| x % 2 == 0).map(|x| x * x);
444-
| ^^^^^^ `std::ops::Range<{integer}>` is not an iterator
445-
|
446-
= help: the trait `~const Iterator` is not implemented for `std::ops::Range<{integer}>`
447-
note: the trait `Iterator` is implemented for `std::ops::Range<{integer}>`, but that implementation is not `const`
448-
--> $DIR/typeck_type_placeholder_item.rs:229:14
449-
|
450-
LL | const _: _ = (1..10).filter(|x| x % 2 == 0).map(|x| x * x);
451-
| ^^^^^^^
452-
453440
error[E0277]: the trait bound `Filter<std::ops::Range<{integer}>, [closure@$DIR/typeck_type_placeholder_item.rs:229:29: 229:32]>: Iterator` is not satisfied
454441
--> $DIR/typeck_type_placeholder_item.rs:229:45
455442
|
@@ -677,7 +664,7 @@ LL | const D: _ = 42;
677664
| not allowed in type signatures
678665
| help: replace with the correct type: `i32`
679666

680-
error: aborting due to 73 previous errors
667+
error: aborting due to 72 previous errors
681668

682669
Some errors have detailed explanations: E0121, E0277, E0282, E0403.
683670
For more information about an error, try `rustc --explain E0121`.

0 commit comments

Comments
 (0)