Skip to content

Commit 0c5f5bd

Browse files
committed
Fix tests
1 parent 1e9e822 commit 0c5f5bd

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

tests/ui/delegation/wrong-lifetime-rib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mod ice_156806 {
3333
trait X {}
3434

3535
impl X { //~ ERROR: expected a type, found a trait
36-
reuse Iterator::fold { //~ ERROR: `()` is not an iterator
36+
reuse Iterator::fold {
3737
let _: &X; //~ ERROR: expected a type, found a trait
3838
}
3939
}

tests/ui/delegation/wrong-lifetime-rib.stderr

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,7 @@ help: you can add the `dyn` keyword if you want a trait object
6666
LL | let _: &dyn X;
6767
| +++
6868

69-
error[E0599]: `()` is not an iterator
70-
--> $DIR/wrong-lifetime-rib.rs:36:25
71-
|
72-
LL | reuse Iterator::fold {
73-
| ^^^^ `()` is not an iterator
74-
|
75-
= note: the following trait bounds were not satisfied:
76-
`(): Iterator`
77-
which is required by `&mut (): Iterator`
78-
79-
error: aborting due to 7 previous errors
69+
error: aborting due to 6 previous errors
8070

81-
Some errors have detailed explanations: E0116, E0223, E0423, E0599, E0782.
71+
Some errors have detailed explanations: E0116, E0223, E0423, E0782.
8272
For more information about an error, try `rustc --explain E0116`.

0 commit comments

Comments
 (0)