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
20 note: struct `Layout` is defined in the current crate
21 --> $DIR/alloc-error-handler-bad-signature-2.rs:7:1
25 note: function defined here
26 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:4
32 = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
34 error[E0308]: mismatched types
35 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:1
37 LL | #[alloc_error_handler]
38 | ---------------------- in this procedural macro expansion
45 | ||_^ expected `!`, found `()`
48 | |__- expected `!` because of return type
50 = note: expected type `!`
52 = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info)
54 error: aborting due to 2 previous errors
56 For more information about this error, try `rustc --explain E0308`.