blob: 75bee8a9f6ae63d4c446016b95067c836fa9b320 [file] [log] [blame]
#![cfg(feature = "full")]
extern crate syn;
use syn::*;
#[test]
fn test_box() {
let raw = "box 0";
let expected = Expr::Box(Box::new(
Expr::Lit(Lit::Int(0, IntTy::Unsuffixed))
));
assert_eq!(expected, parse_expr(raw).unwrap());
}