Skip to content

Commit

Permalink
Fix rustc_ast unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Aug 14, 2020
1 parent e80654a commit ae7951e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc_ast/ast/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
}

0 comments on commit ae7951e

Please sign in to comment.