yew/packages/yew-macro/tests/html_lints_test.rs
Teymour Aldridge 7e2542cbf8
Add basic lints to the HTML macro. (#1748)
* Add basic lints to the HTML macro.

* f

* Fix the examples.

* Fix nightly warning message tests.

* apply code review suggestions

* update error message

* rebase onto master

* remove unused props

* remove console log

* remove js void

* fix according to PR comments

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2021-11-21 19:54:49 +05:00

8 lines
195 B
Rust

#[allow(dead_code)]
#[cfg(feature = "lints")]
#[rustversion::attr(nightly, test)]
fn test_html_lints() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/html_lints/fail.rs");
}