error[E0277]: the trait bound `MyVTab: VTab<'sqlite3_ext_vtab>` is not satisfied
--> tests/ui/vtab_missing_trait.rs:3:1
|
3 | #[sqlite3_ext_vtab(StandardModule)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
help: the trait `VTab<'sqlite3_ext_vtab>` is not implemented for `MyVTab`
--> tests/ui/vtab_missing_trait.rs:4:1
|
4 | struct MyVTab {}
| ^^^^^^^^^^^^^
note: required by a bound in `StandardModule`
--> src/vtab/module.rs
|
| / module_base!(
| | /// Declare a virtual table.
| | ///
| | /// See [sqlite_ext_vtab](::sqlite3_ext_macro::sqlite3_ext_vtab) for details on how to
... |
| | StandardModule<CreateVTab> {
| | -------------- required by a bound in this struct
... |
| | });
| |__^ required by this bound in `StandardModule`
= note: this error originates in the attribute macro `sqlite3_ext_vtab` which comes from the expansion of the macro `module_base` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `MyVTab: VTab<'_>` is not satisfied
--> tests/ui/vtab_missing_trait.rs:3:1
|
3 | #[sqlite3_ext_vtab(StandardModule)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
help: the trait `VTab<'_>` is not implemented for `MyVTab`
--> tests/ui/vtab_missing_trait.rs:4:1
|
4 | struct MyVTab {}
| ^^^^^^^^^^^^^
note: required by a bound in `StandardModule`
--> src/vtab/module.rs
|
| / module_base!(
| | /// Declare a virtual table.
| | ///
| | /// See [sqlite_ext_vtab](::sqlite3_ext_macro::sqlite3_ext_vtab) for details on how to
... |
| | StandardModule<CreateVTab> {
| | -------------- required by a bound in this struct
... |
| | });
| |__^ required by this bound in `StandardModule`
= note: this error originates in the attribute macro `sqlite3_ext_vtab` which comes from the expansion of the macro `module_base` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the function or associated item `new` exists for struct `StandardModule<'_, MyVTab>`, but its trait bounds were not satisfied
--> tests/ui/vtab_missing_trait.rs:3:1
|
3 | #[sqlite3_ext_vtab(StandardModule)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called on `StandardModule<'_, MyVTab>` due to unsatisfied trait bounds
4 | struct MyVTab {}
| ------------- doesn't satisfy `MyVTab: CreateVTab<'_>`
|
= note: the following trait bounds were not satisfied:
`MyVTab: CreateVTab<'_>`
note: the trait `CreateVTab` must be implemented
--> src/vtab/mod.rs
|
| pub trait CreateVTab<'vtab>: VTab<'vtab> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the attribute macro `sqlite3_ext_vtab` (in Nightly builds, run with -Z macro-backtrace for more info)