1 // aux-build:attr-stmt-expr.rs
3 #![feature(proc_macro_hygiene)]
5 extern crate attr_stmt_expr;
6 use attr_stmt_expr::{expect_let, expect_print_stmt, expect_expr, expect_print_expr};
8 fn print_str(string: &'static str) {
9 // macros are handled a bit differently
11 //~^ ERROR attributes on expressions are experimental
12 //~| HELP add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
13 println!("{}", string)
18 let string = "Hello, world!";
21 println!("{}", string);
24 //~^ ERROR attributes on expressions are experimental
25 //~| HELP add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable