Update compile error tests

This commit is contained in:
Kogia-sima 2020-11-21 18:02:24 +09:00
parent cfd40f573b
commit 52e635af6e
7 changed files with 75 additions and 5 deletions

View File

@ -1,3 +1,13 @@
warning: unused import: `std::mem`
--> $DIR/mod.rs:12:5
|
12 | use std::mem;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: 1 warning emitted
error: expected boolean literal
--> $DIR/invalid_option_value.rs:5:38
|
@ -15,7 +25,7 @@ error[E0599]: no method named `render_once` found for struct `InvalidOptionValue
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `render_once`, perhaps you need to implement it:
candidate #1: `sailfish::TemplateOnce`
candidate #1: `TemplateOnce`
warning: unused import: `sailfish::TemplateOnce`
--> $DIR/invalid_option_value.rs:1:5

View File

@ -1,3 +1,13 @@
warning: unused import: `std::mem`
--> $DIR/mod.rs:12:5
|
12 | use std::mem;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: 1 warning emitted
error: `path` option must be specified.
--> $DIR/no_path.rs:4:10
|
@ -17,7 +27,7 @@ error[E0599]: no method named `render_once` found for struct `NoTemplate` in the
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `render_once`, perhaps you need to implement it:
candidate #1: `sailfish::TemplateOnce`
candidate #1: `TemplateOnce`
warning: unused import: `sailfish::TemplateOnce`
--> $DIR/no_path.rs:1:5

View File

@ -1,3 +1,13 @@
warning: unused import: `std::mem`
--> $DIR/mod.rs:12:5
|
12 | use std::mem;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: 1 warning emitted
error: keyword argument repeated.
--> $DIR/repeated_arguments.rs:6:21
|
@ -15,7 +25,7 @@ error[E0599]: no method named `render_once` found for struct `InvalidOptionValue
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `render_once`, perhaps you need to implement it:
candidate #1: `sailfish::TemplateOnce`
candidate #1: `TemplateOnce`
warning: unused import: `sailfish::TemplateOnce`
--> $DIR/repeated_arguments.rs:1:5

View File

@ -1,3 +1,13 @@
warning: unused import: `std::mem`
--> $DIR/mod.rs:12:5
|
12 | use std::mem;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: 1 warning emitted
error: Failed to compile template.
Caused by: Rust Syntax Error: LexError

View File

@ -1,3 +1,13 @@
warning: unused import: `std::mem`
--> $DIR/mod.rs:12:5
|
12 | use std::mem;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: 1 warning emitted
error: Failed to compile template.
Caused by: Parse error: Unterminated code block
@ -26,7 +36,7 @@ error[E0599]: no method named `render_once` found for struct `UnclosedDelimiter`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `render_once`, perhaps you need to implement it:
candidate #1: `sailfish::TemplateOnce`
candidate #1: `TemplateOnce`
warning: unused import: `sailfish::TemplateOnce`
--> $DIR/unclosed_delimter.rs:1:5

View File

@ -1,3 +1,13 @@
warning: unused import: `std::mem`
--> $DIR/mod.rs:12:5
|
12 | use std::mem;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: 1 warning emitted
error: Failed to compile template.
Caused by: Rust Syntax Error: expected expression

View File

@ -1,3 +1,13 @@
warning: unused import: `std::mem`
--> $DIR/mod.rs:12:5
|
12 | use std::mem;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: 1 warning emitted
error: Unknown option: `patth`
--> $DIR/unknown_option.rs:5:12
|
@ -15,7 +25,7 @@ error[E0599]: no method named `render_once` found for struct `UnknownOption` in
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `render_once`, perhaps you need to implement it:
candidate #1: `sailfish::TemplateOnce`
candidate #1: `TemplateOnce`
warning: unused import: `sailfish::TemplateOnce`
--> $DIR/unknown_option.rs:1:5