Update compile error tests
This commit is contained in:
parent
cfd40f573b
commit
52e635af6e
|
@ -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
|
error: expected boolean literal
|
||||||
--> $DIR/invalid_option_value.rs:5:38
|
--> $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
|
= 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:
|
= 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`
|
warning: unused import: `sailfish::TemplateOnce`
|
||||||
--> $DIR/invalid_option_value.rs:1:5
|
--> $DIR/invalid_option_value.rs:1:5
|
||||||
|
|
|
@ -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.
|
error: `path` option must be specified.
|
||||||
--> $DIR/no_path.rs:4:10
|
--> $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
|
= 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:
|
= 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`
|
warning: unused import: `sailfish::TemplateOnce`
|
||||||
--> $DIR/no_path.rs:1:5
|
--> $DIR/no_path.rs:1:5
|
||||||
|
|
|
@ -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.
|
error: keyword argument repeated.
|
||||||
--> $DIR/repeated_arguments.rs:6:21
|
--> $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
|
= 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:
|
= 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`
|
warning: unused import: `sailfish::TemplateOnce`
|
||||||
--> $DIR/repeated_arguments.rs:1:5
|
--> $DIR/repeated_arguments.rs:1:5
|
||||||
|
|
|
@ -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.
|
error: Failed to compile template.
|
||||||
Caused by: Rust Syntax Error: LexError
|
Caused by: Rust Syntax Error: LexError
|
||||||
|
|
||||||
|
|
|
@ -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.
|
error: Failed to compile template.
|
||||||
Caused by: Parse error: Unterminated code block
|
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
|
= 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:
|
= 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`
|
warning: unused import: `sailfish::TemplateOnce`
|
||||||
--> $DIR/unclosed_delimter.rs:1:5
|
--> $DIR/unclosed_delimter.rs:1:5
|
||||||
|
|
|
@ -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.
|
error: Failed to compile template.
|
||||||
Caused by: Rust Syntax Error: expected expression
|
Caused by: Rust Syntax Error: expected expression
|
||||||
|
|
||||||
|
|
|
@ -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`
|
error: Unknown option: `patth`
|
||||||
--> $DIR/unknown_option.rs:5:12
|
--> $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
|
= 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:
|
= 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`
|
warning: unused import: `sailfish::TemplateOnce`
|
||||||
--> $DIR/unknown_option.rs:1:5
|
--> $DIR/unknown_option.rs:1:5
|
||||||
|
|
Loading…
Reference in New Issue