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
12 | ||_- arguments to this function are incorrect
15 | |__^ expected struct `Layout`, found struct `core::alloc::Layout`
17 = note: struct `core::alloc::Layout` and struct `Layout` have similar names, but are actually distinct types
18 note: struct `core::alloc::Layout` is defined in crate `core`
19 --> $SRC_DIR/core/src/alloc/layout.rs:LL:COL
21 LL | pub struct Layout {
23 note: struct `Layout` is defined in the current crate
24 --> $DIR/alloc-error-handler-bad-signature-2.rs:7:1
28 note: function defined here
29 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:4
35 = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
37 error[E0308]: mismatched types
38 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:1
40 LL | #[alloc_error_handler]
41 | ---------------------- in this procedural macro expansion
48 | ||_^ expected `!`, found `()`
51 | |__- expected `!` because of return type
53 = note: expected type `!`
55 = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
57 error: aborting due to 2 previous errors
59 For more information about this error, try `rustc --explain E0308`.