File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,17 @@ error: specta: invalid formatted attribute
4949error[E0432]: unresolved import `specta::specta`
5050 --> tests/macro/compile_error.rs:3:14
5151 |
52- 3 | use specta::{specta, Type};
53- | ^^^^^^ no `specta` in the root
54- |
52+ 3 | use specta::{specta, Type};
53+ | ^^^^^^ no `specta` in the root
54+ |
5555note: found an item that was configured out
56- --> $WORKSPACE/specta/src/lib.rs
57- |
58- | pub use specta_macros::specta;
59- | ^^^^^^
60- note: the item is gated here
61- --> $WORKSPACE/specta/src/lib.rs
62- |
63- | #[cfg(all(feature = "derive", feature = "function"))]
64- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56+ --> $WORKSPACE/specta/src/lib.rs
57+ |
58+ | #[cfg(all(feature = "derive", feature = "function"))]
59+ | -------------------- the item is gated behind the `function` feature
60+ | #[cfg_attr(docsrs, doc(cfg(all(feature = "derive", feature = "function"))))]
61+ | pub use specta_macros::specta;
62+ | ^^^^^^
6563
6664error[E0601]: `main` function not found in crate `$CRATE`
6765 --> tests/macro/compile_error.rs:110:20
You can’t perform that action at this time.
0 commit comments