Skip to content

Commit

Permalink
Update the rest of the test suites to use dyn
Browse files Browse the repository at this point in the history
  • Loading branch information
memoryruins committed May 29, 2019
1 parent f19f454 commit fd347a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-23595-1.rs
Expand Up @@ -5,7 +5,7 @@ use std::ops::{Index};
trait Hierarchy {
type Value;
type ChildKey;
type Children = Index<Self::ChildKey, Output=Hierarchy>;
type Children = dyn Index<Self::ChildKey, Output=dyn Hierarchy>;
//~^ ERROR: the value of the associated types `Value` (from the trait `Hierarchy`), `ChildKey`

fn data(&self) -> Option<(Self::Value, Self::Children)>;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass-fulldeps/pprust-expr-roundtrip.rs
Expand Up @@ -62,7 +62,7 @@ fn make_x() -> P<Expr> {
/// Iterate over exprs of depth up to `depth`. The goal is to explore all "interesting"
/// combinations of expression nesting. For example, we explore combinations using `if`, but not
/// `while` or `match`, since those should print and parse in much the same way as `if`.
fn iter_exprs(depth: usize, f: &mut FnMut(P<Expr>)) {
fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
if depth == 0 {
f(make_x());
return;
Expand Down

0 comments on commit fd347a8

Please sign in to comment.