fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied 2 --> $DIR/not-an-allocator.rs:2:1 3 | 4LL | static A: usize = 0; 5 | ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize` 6 | 7 = note: required by `std::alloc::GlobalAlloc::alloc` 8 9error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied 10 --> $DIR/not-an-allocator.rs:2:1 11 | 12LL | static A: usize = 0; 13 | ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize` 14 | 15 = note: required by `std::alloc::GlobalAlloc::dealloc` 16 17error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied 18 --> $DIR/not-an-allocator.rs:2:1 19 | 20LL | static A: usize = 0; 21 | ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize` 22 | 23 = note: required by `std::alloc::GlobalAlloc::realloc` 24 25error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied 26 --> $DIR/not-an-allocator.rs:2:1 27 | 28LL | static A: usize = 0; 29 | ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize` 30 | 31 = note: required by `std::alloc::GlobalAlloc::alloc_zeroed` 32 33error: aborting due to 4 previous errors 34 35For more information about this error, try `rustc --explain E0277`.