Skip to content

Commit fd347a8

Browse files
committed
Update the rest of the test suites to use dyn
1 parent f19f454 commit fd347a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/compile-fail/issue-23595-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::ops::{Index};
55
trait Hierarchy {
66
type Value;
77
type ChildKey;
8-
type Children = Index<Self::ChildKey, Output=Hierarchy>;
8+
type Children = dyn Index<Self::ChildKey, Output=dyn Hierarchy>;
99
//~^ ERROR: the value of the associated types `Value` (from the trait `Hierarchy`), `ChildKey`
1010

1111
fn data(&self) -> Option<(Self::Value, Self::Children)>;

src/test/run-pass-fulldeps/pprust-expr-roundtrip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn make_x() -> P<Expr> {
6262
/// Iterate over exprs of depth up to `depth`. The goal is to explore all "interesting"
6363
/// combinations of expression nesting. For example, we explore combinations using `if`, but not
6464
/// `while` or `match`, since those should print and parse in much the same way as `if`.
65-
fn iter_exprs(depth: usize, f: &mut FnMut(P<Expr>)) {
65+
fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
6666
if depth == 0 {
6767
f(make_x());
6868
return;

0 commit comments

Comments
 (0)