parent
4cffcd298b
commit
7284924cc8
8 changed files with 60 additions and 0 deletions
7
maud/tests/warnings/attribute-missing-value.rs
Normal file
7
maud/tests/warnings/attribute-missing-value.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use maud::html;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
html! {
|
||||||
|
a href=
|
||||||
|
};
|
||||||
|
}
|
9
maud/tests/warnings/attribute-missing-value.stderr
Normal file
9
maud/tests/warnings/attribute-missing-value.stderr
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
error: unexpected end of input
|
||||||
|
--> $DIR/attribute-missing-value.rs:4:5
|
||||||
|
|
|
||||||
|
4 | / html! {
|
||||||
|
5 | | a href=
|
||||||
|
6 | | };
|
||||||
|
| |______^
|
||||||
|
|
|
||||||
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
7
maud/tests/warnings/class-shorthand-missing-value.rs
Normal file
7
maud/tests/warnings/class-shorthand-missing-value.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use maud::html;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
html! {
|
||||||
|
p.
|
||||||
|
};
|
||||||
|
}
|
9
maud/tests/warnings/class-shorthand-missing-value.stderr
Normal file
9
maud/tests/warnings/class-shorthand-missing-value.stderr
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
error: unexpected end of input
|
||||||
|
--> $DIR/class-shorthand-missing-value.rs:4:5
|
||||||
|
|
|
||||||
|
4 | / html! {
|
||||||
|
5 | | p.
|
||||||
|
6 | | };
|
||||||
|
| |______^
|
||||||
|
|
|
||||||
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
7
maud/tests/warnings/element-missing-body.rs
Normal file
7
maud/tests/warnings/element-missing-body.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use maud::html;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
html! {
|
||||||
|
p
|
||||||
|
};
|
||||||
|
}
|
9
maud/tests/warnings/element-missing-body.stderr
Normal file
9
maud/tests/warnings/element-missing-body.stderr
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
error: unexpected end of input
|
||||||
|
--> $DIR/element-missing-body.rs:4:5
|
||||||
|
|
|
||||||
|
4 | / html! {
|
||||||
|
5 | | p
|
||||||
|
6 | | };
|
||||||
|
| |______^
|
||||||
|
|
|
||||||
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
7
maud/tests/warnings/non-string-literal.rs
Normal file
7
maud/tests/warnings/non-string-literal.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use maud::html;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
html! {
|
||||||
|
42
|
||||||
|
};
|
||||||
|
}
|
5
maud/tests/warnings/non-string-literal.stderr
Normal file
5
maud/tests/warnings/non-string-literal.stderr
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
error: expected string
|
||||||
|
--> $DIR/non-string-literal.rs:5:9
|
||||||
|
|
|
||||||
|
5 | 42
|
||||||
|
| ^^
|
Loading…
Add table
Reference in a new issue