fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:1 3 | 4LL | #[alloc_error_handler] 5 | ---------------------- in this procedural macro expansion 6LL | // fn oom( 7LL | || info: Layout, 8LL | || ) { 9 | ||_- arguments to this function are incorrect 10LL | | loop {} 11LL | | } 12 | |__^ expected `Layout`, found `core::alloc::Layout` 13 | 14 = note: `core::alloc::Layout` and `Layout` have similar names, but are actually distinct types 15note: `core::alloc::Layout` is defined in crate `core` 16 --> $SRC_DIR/core/src/alloc/layout.rs:LL:COL 17note: `Layout` is defined in the current crate 18 --> $DIR/alloc-error-handler-bad-signature-2.rs:7:1 19 | 20LL | struct Layout; 21 | ^^^^^^^^^^^^^ 22note: function defined here 23 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:4 24 | 25LL | fn oom( 26 | ^^^ 27LL | info: Layout, 28 | ------------ 29 = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info) 30 31error[E0308]: mismatched types 32 --> $DIR/alloc-error-handler-bad-signature-2.rs:10:1 33 | 34LL | #[alloc_error_handler] 35 | ---------------------- in this procedural macro expansion 36LL | // fn oom( 37LL | || info: Layout, 38LL | || ) { 39 | ||_^ expected `!`, found `()` 40LL | | loop {} 41LL | | } 42 | |__- expected `!` because of return type 43 | 44 = note: expected type `!` 45 found unit type `()` 46 = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info) 47 48error: aborting due to 2 previous errors 49 50For more information about this error, try `rustc --explain E0308`.