blob: 75bee8a9f6ae63d4c446016b95067c836fa9b320 [file] [log] [blame]
David Tolnayfa0edf22016-09-23 22:58:24 -07001#![cfg(feature = "full")]
2
3extern crate syn;
4use syn::*;
5
6#[test]
7fn test_box() {
8 let raw = "box 0";
9
10 let expected = Expr::Box(Box::new(
11 Expr::Lit(Lit::Int(0, IntTy::Unsuffixed))
12 ));
13
14 assert_eq!(expected, parse_expr(raw).unwrap());
15}