@@ -5,7 +5,7 @@ LL | static A: usize = 0;
55 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
66 |
77 = note: required by `std::alloc::GlobalAlloc::alloc`
8- = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
8+ = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
99
1010error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
1111 --> $DIR/not-an-allocator.rs:2:1
@@ -14,7 +14,7 @@ LL | static A: usize = 0;
1414 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
1515 |
1616 = note: required by `std::alloc::GlobalAlloc::dealloc`
17- = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
17+ = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
1818
1919error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2020 --> $DIR/not-an-allocator.rs:2:1
@@ -23,7 +23,7 @@ LL | static A: usize = 0;
2323 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2424 |
2525 = note: required by `std::alloc::GlobalAlloc::realloc`
26- = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
26+ = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
2727
2828error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2929 --> $DIR/not-an-allocator.rs:2:1
@@ -32,7 +32,7 @@ LL | static A: usize = 0;
3232 | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
3333 |
3434 = note: required by `std::alloc::GlobalAlloc::alloc_zeroed`
35- = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
35+ = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
3636
3737error: aborting due to 4 previous errors
3838
0 commit comments