error[E0271]: type mismatch resolving `<FooNext as Table>::Schema == Schema`
--> tests/compile/table_does_not_exist.rs:9:23
|
3 | #[schema(Schema)]
| ----------------- required by a bound introduced by this call
...
9 | pub evolving: rust_query::TableRow<FooNext>,
| ^^^^^^^^^^ type mismatch resolving `<FooNext as Table>::Schema == Schema`
|
note: expected this to be `v0::Schema`
--> tests/compile/table_does_not_exist.rs:3:10
|
3 | #[schema(Schema)]
| ^^^^^^
= note: `v1::Schema` and `v0::Schema` have similar names, but are actually distinct types
note: `v1::Schema` is defined in module `crate::v1` of the current crate
--> tests/compile/table_does_not_exist.rs:3:1
|
3 | #[schema(Schema)]
| ^^^^^^^^^^^^^^^
note: `v0::Schema` is defined in module `crate::v0` of the current crate
--> tests/compile/table_does_not_exist.rs:3:1
|
3 | #[schema(Schema)]
| ^^^^^^^^^^^^^^^
= note: required for `TableRow<FooNext>` to implement `rust_query::private::SchemaType<v0::Schema>`
note: required by a bound in `rust_query::private::TypBuilder::<S>::col`
--> src/schema/from_macro.rs
|
| pub fn col<T: SchemaType<S>>(&mut self, name: &'static str, span: (usize, usize)) {
| ^^^^^^^^^^^^^ required by this bound in `TypBuilder::<S>::col`
= note: this error originates in the attribute macro `schema` (in Nightly builds, run with -Z macro-backtrace for more info)