Skip to content

Commit ae7951e

Browse files
committed
Fix rustc_ast unit test
1 parent e80654a commit ae7951e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_ast/ast/tests.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ use super::*;
33
// Are ASTs encodable?
44
#[test]
55
fn check_asts_encodable() {
6-
fn assert_encodable<T: rustc_serialize::Encodable>() {}
6+
fn assert_encodable<
7+
T: for<'a> rustc_serialize::Encodable<rustc_serialize::json::Encoder<'a>>,
8+
>() {
9+
}
710
assert_encodable::<Crate>();
811
}

0 commit comments

Comments
 (0)