diff --git a/src/consts.rs b/src/consts.rs index 7090ff64..b6695416 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -34,9 +34,10 @@ pub const FILE_TEMPLATE: &'static str = r#"%b"#; pub const EXPR_TEMPLATE: &'static str = r#" %p fn main() { - println!("{:?}", + let __cargo_script_expr = { {%b} - ); + }; + println!("{:?}", __cargo_script_expr); } "#;