2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2021-12-14 19:40:08 -06:00
|
|
|
--> $DIR/not-an-allocator.rs:2:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
LL | #[global_allocator]
|
|
|
|
| ------------------- in this procedural macro expansion
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | static A: usize = 0;
|
2021-12-14 19:40:08 -06:00
|
|
|
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `GlobalAlloc` is implemented for `System`
|
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
|
2021-12-14 19:40:08 -06:00
|
|
|
--> $DIR/not-an-allocator.rs:2:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
LL | #[global_allocator]
|
|
|
|
| ------------------- in this procedural macro expansion
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | static A: usize = 0;
|
2021-12-14 19:40:08 -06:00
|
|
|
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `GlobalAlloc` is implemented for `System`
|
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
|
2021-12-14 19:40:08 -06:00
|
|
|
--> $DIR/not-an-allocator.rs:2:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
LL | #[global_allocator]
|
|
|
|
| ------------------- in this procedural macro expansion
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | static A: usize = 0;
|
2021-12-14 19:40:08 -06:00
|
|
|
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `GlobalAlloc` is implemented for `System`
|
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
|
2021-12-14 19:40:08 -06:00
|
|
|
--> $DIR/not-an-allocator.rs:2:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
LL | #[global_allocator]
|
|
|
|
| ------------------- in this procedural macro expansion
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | static A: usize = 0;
|
2021-12-14 19:40:08 -06:00
|
|
|
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `GlobalAlloc` is implemented for `System`
|
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`.
|