Merge pull request #4 from dtolnay/ui

Update ui test goldens
This commit is contained in:
Bodil Stokke 2018-11-20 14:23:37 +00:00 committed by GitHub
commit 9ec74ad153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 24 deletions

View File

@ -4,18 +4,5 @@ error: <html> requires 2 children but there are only 1
10 | <html>
| ^^^^
error: proc macro panicked
--> $DIR/not-enough-children.rs:9:30
|
9 | let _: DOMTree<String> = html!{
| ______________________________^
10 | | <html>
11 | | <head></head>
12 | | </html>
13 | | };
| |_____^
|
= help: message: explicit panic
error: aborting due to 2 previous errors
error: aborting due to previous error

View File

@ -3,12 +3,12 @@ error: expected closing tag '</html>', found '</head>'
|
10 | <html></head>
| ^^^^
|
help: opening tag is here:
error: unclosed tag
--> $DIR/tag-mismatch.rs:10:10
|
10 | <html></head>
| ^^^^
error: aborting due to previous error
error: aborting due to 2 previous errors

View File

@ -3,8 +3,12 @@ error: expected "<", code block or literal
|
10 | <title>unquoted</title>
| ^^^^^^^^
error: text nodes need to be quoted, eg. <p>"Hello Joe!"</p>
--> $DIR/text-nodes-need-to-be-quoted.rs:10:16
|
= help: text nodes need to be quoted, eg. <p>"Hello Joe!"</p>
10 | <title>unquoted</title>
| ^^^^^^^^
error: aborting due to previous error
error: aborting due to 2 previous errors

View File

@ -1,10 +1,13 @@
error: unexpected end of macro
--> $DIR/unexpected-end-of-macro.rs:10:9
error: unexpected end of macro; missing "<", code block or literal
--> $DIR/unexpected-end-of-macro.rs:9:30
|
10 | <title>
| ^^^^^^^
9 | let _: DOMTree<String> = html!{
| ______________________________^
10 | | <title>
11 | | };
| |_____^
|
= help: missing "<", code block or literal
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error