From 5e474231dad9162fb2e25dd32cc06c1893570cdf Mon Sep 17 00:00:00 2001 From: greg Date: Sat, 21 Jan 2017 14:34:17 -0800 Subject: [PATCH] ProgrammingLanguage types need Debug --- src/language.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/language.rs b/src/language.rs index db758d4..649ad07 100644 --- a/src/language.rs +++ b/src/language.rs @@ -1,3 +1,4 @@ +use std::fmt::Debug; pub struct TokenError { pub msg: String, @@ -8,8 +9,8 @@ pub struct ParseError { } pub trait ProgrammingLanguage { - type Token; - type AST; + type Token: Debug; + type AST: Debug; fn tokenize(input: &str) -> Result, TokenError>; fn parse(input: Vec) -> Result;