2018-08-08 07:28:26 -05:00
|
|
|
error[E0277]: the trait bound `usize: std::alloc::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;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
|
|
|
|
|
|
|
|
|
= note: required by `std::alloc::GlobalAlloc::alloc`
|
2019-12-16 07:56:47 -06:00
|
|
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `usize: std::alloc::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;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
|
|
|
|
|
|
|
|
|
= note: required by `std::alloc::GlobalAlloc::dealloc`
|
2019-12-16 07:56:47 -06:00
|
|
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `usize: std::alloc::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;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
|
|
|
|
|
|
|
|
|
= note: required by `std::alloc::GlobalAlloc::realloc`
|
2019-12-16 07:56:47 -06:00
|
|
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `usize: std::alloc::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;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
|
|
|
|
|
|
|
|
|
= note: required by `std::alloc::GlobalAlloc::alloc_zeroed`
|
2019-12-16 07:56:47 -06:00
|
|
|
= note: this error originates in an attribute macro (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`.
|