|
| 1 | +error[E0308]: mismatched types |
| 2 | + --> tests/bad/skip_from_all.rs:23:42 |
| 3 | + | |
| 4 | +23 | let foo_v1beta1 = v1beta1::Foo::from(foo_v1alpha1); |
| 5 | + | ------------------ ^^^^^^^^^^^^ expected `v1beta1::Foo`, found `v1alpha1::Foo` |
| 6 | + | | |
| 7 | + | arguments to this function are incorrect |
| 8 | + | |
| 9 | + = note: `v1alpha1::Foo` and `v1beta1::Foo` have similar names, but are actually distinct types |
| 10 | +note: `v1alpha1::Foo` is defined in module `crate::main::v1alpha1` of the current crate |
| 11 | + --> tests/bad/skip_from_all.rs:4:5 |
| 12 | + | |
| 13 | +4 | / #[versioned( |
| 14 | +5 | | version(name = "v1alpha1"), |
| 15 | +6 | | version(name = "v1beta1"), |
| 16 | +7 | | version(name = "v1"), |
| 17 | +8 | | options(skip(from)) |
| 18 | +9 | | )] |
| 19 | + | |______^ |
| 20 | +note: `v1beta1::Foo` is defined in module `crate::main::v1beta1` of the current crate |
| 21 | + --> tests/bad/skip_from_all.rs:4:5 |
| 22 | + | |
| 23 | +4 | / #[versioned( |
| 24 | +5 | | version(name = "v1alpha1"), |
| 25 | +6 | | version(name = "v1beta1"), |
| 26 | +7 | | version(name = "v1"), |
| 27 | +8 | | options(skip(from)) |
| 28 | +9 | | )] |
| 29 | + | |______^ |
| 30 | +note: associated function defined here |
| 31 | + --> $RUST/core/src/convert/mod.rs |
| 32 | + | |
| 33 | + | fn from(value: T) -> Self; |
| 34 | + | ^^^^ |
| 35 | + = note: this error originates in the attribute macro `versioned` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments