Fix rustc_ast unit test

This commit is contained in:
Matthew Jasper 2020-07-18 15:12:52 +01:00
parent e80654a4f1
commit ae7951ed43

View File

@ -3,6 +3,9 @@ use super::*;
// Are ASTs encodable?
#[test]
fn check_asts_encodable() {
fn assert_encodable<T: rustc_serialize::Encodable>() {}
fn assert_encodable<
T: for<'a> rustc_serialize::Encodable<rustc_serialize::json::Encoder<'a>>,
>() {
}
assert_encodable::<Crate>();
}