maud/maud_macros/tests/warnings/warn_on_keyword_names.rs
Isaac van Bakel f1f67e5aac Added compile tests to check keyword warning
compiletest_rs is now used to check that elements which have keyword
names are now warned against in a UI test.
compiletest_rs has been added as a build dependency.
2018-10-19 22:39:11 +01:00

11 lines
200 B
Rust

#![feature(proc_macro_hygiene)]
extern crate maud_macros;
use maud_macros::html;
fn main() {
let markup = html!{
if {} //~WARNING found keyword `if` - should this be a `@if`?
};
}