2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/not-an-allocator.rs:2:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static A: usize = 0;
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: required by `std::alloc::GlobalAlloc::alloc`
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/not-an-allocator.rs:2:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static A: usize = 0;
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: required by `std::alloc::GlobalAlloc::dealloc`
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/not-an-allocator.rs:2:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static A: usize = 0;
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: required by `std::alloc::GlobalAlloc::realloc`
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/not-an-allocator.rs:2:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static A: usize = 0;
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: required by `std::alloc::GlobalAlloc::alloc_zeroed`
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|