37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
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
|
|
|
|
|
5 | #[template(path = "foo.stpl", escape=1)]
|
|
| ^
|
|
|
|
error[E0599]: no method named `render_once` found for struct `InvalidOptionValue` in the current scope
|
|
--> $DIR/invalid_option_value.rs:11:69
|
|
|
|
|
6 | struct InvalidOptionValue {
|
|
| ------------------------- method `render_once` not found for this
|
|
...
|
|
11 | println!("{}", InvalidOptionValue { name: "Hanako".to_owned() }.render_once().unwrap());
|
|
| ^^^^^^^^^^^ method not found in `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: `TemplateOnce`
|
|
|
|
warning: unused import: `sailfish::TemplateOnce`
|
|
--> $DIR/invalid_option_value.rs:1:5
|
|
|
|
|
1 | use sailfish::TemplateOnce;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(unused_imports)]` on by default
|