Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Update where_clause_to_string! test
Browse files Browse the repository at this point in the history
Unfortunately we can't enable this yet as support for this hasn't
landed in rustc yet.
  • Loading branch information
erickt committed Apr 11, 2015
1 parent 127d0cf commit 03e4167
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ fn test_quote_where_clause() {
let sess = parse::new_parse_sess();
let cx = make_ext_ctxt(&sess);
let where_clause = quote_where_clause!(&cx, where A, B: T);
let where_clause = quote_where_clause!(&cx, where A, B: T).ok().unwrap();
assert_eq!(
pprust::to_string(|s| s.print_where_clause(&where_clause)),
pprust::where_clause_to_string(&where_clause),
"where A, B: T"
);
}
Expand Down

0 comments on commit 03e4167

Please sign in to comment.