1 error[E0308]: mismatched types
2 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:1
4 LL | #[alloc_error_handler]
5 | ---------------------- in this procedural macro expansion
14 | | arguments to this function are incorrect
17 | |__^ expected struct `Layout`, found struct `core::alloc::Layout`
19 = note: struct `core::alloc::Layout` and struct `Layout` have similar names, but are actually distinct types
20 note: struct `core::alloc::Layout` is defined in crate `core`
21 --> $SRC_DIR/core/src/alloc/layout.rs:LL:COL
23 LL | pub struct Layout {
25 note: struct `Layout` is defined in the current crate
26 --> $DIR/alloc-error-handler-bad-signature-2.rs:7:1
30 note: function defined here
31 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:4
37 = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
39 error[E0308]: mismatched types
40 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:1
42 LL | #[alloc_error_handler]
43 | ---------------------- in this procedural macro expansion
52 | | expected `!`, found `()`
55 | |__- expected `!` because of return type
57 = note: expected type `!`
59 = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
61 error: aborting due to 2 previous errors
63 For more information about this error, try `rustc --explain E0308`.