]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/std-core-cycle/bar.rs
Rollup merge of #107532 - compiler-errors:erase-regions-in-uninhabited, r=jackh726
[rust.git] / tests / run-make-fulldeps / std-core-cycle / bar.rs
1 #![feature(allocator_api)]
2 #![crate_type = "rlib"]
3
4 use std::alloc::*;
5
6 pub struct A;
7
8 unsafe impl GlobalAlloc for A {
9     unsafe fn alloc(&self, _: Layout) -> *mut u8 {
10         loop {}
11     }
12
13     unsafe fn dealloc(&self, _ptr: *mut u8, _: Layout) {
14         loop {}
15     }
16 }