1 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2 --> $DIR/not-an-allocator.rs:2:1
4 LL | static A: usize = 0;
5 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
7 = note: required by `std::alloc::GlobalAlloc::alloc`
8 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
10 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
11 --> $DIR/not-an-allocator.rs:2:1
13 LL | static A: usize = 0;
14 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
16 = note: required by `std::alloc::GlobalAlloc::dealloc`
17 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
19 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
20 --> $DIR/not-an-allocator.rs:2:1
22 LL | static A: usize = 0;
23 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
25 = note: required by `std::alloc::GlobalAlloc::realloc`
26 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
28 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
29 --> $DIR/not-an-allocator.rs:2:1
31 LL | static A: usize = 0;
32 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
34 = note: required by `std::alloc::GlobalAlloc::alloc_zeroed`
35 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0277`.