2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2021-12-15 01:40:08 +00:00
|
|
|
--> $DIR/not-an-allocator.rs:2:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | #[global_allocator]
|
2025-07-28 03:00:24 -07:00
|
|
|
| ------------------- in this attribute macro expansion
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | static A: usize = 0;
|
2021-12-15 01:40:08 +00:00
|
|
|
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-12-13 20:56:40 +00:00
|
|
|
= help: the trait `GlobalAlloc` is implemented for `System`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2021-12-15 01:40:08 +00:00
|
|
|
--> $DIR/not-an-allocator.rs:2:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | #[global_allocator]
|
2025-07-28 03:00:24 -07:00
|
|
|
| ------------------- in this attribute macro expansion
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | static A: usize = 0;
|
2021-12-15 01:40:08 +00:00
|
|
|
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-12-13 20:56:40 +00:00
|
|
|
= help: the trait `GlobalAlloc` is implemented for `System`
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2021-12-15 01:40:08 +00:00
|
|
|
--> $DIR/not-an-allocator.rs:2:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | #[global_allocator]
|
2025-07-28 03:00:24 -07:00
|
|
|
| ------------------- in this attribute macro expansion
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | static A: usize = 0;
|
2021-12-15 01:40:08 +00:00
|
|
|
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-12-13 20:56:40 +00:00
|
|
|
= help: the trait `GlobalAlloc` is implemented for `System`
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
|
2021-12-15 01:40:08 +00:00
|
|
|
--> $DIR/not-an-allocator.rs:2:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | #[global_allocator]
|
2025-07-28 03:00:24 -07:00
|
|
|
| ------------------- in this attribute macro expansion
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | static A: usize = 0;
|
2021-12-15 01:40:08 +00:00
|
|
|
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-12-13 20:56:40 +00:00
|
|
|
= help: the trait `GlobalAlloc` is implemented for `System`
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|