@@ -5,7 +5,7 @@ LL | static A: usize = 0;
5
5
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
6
6
|
7
7
= 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)
9
9
10
10
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
11
11
--> $DIR/not-an-allocator.rs:2:1
@@ -14,7 +14,7 @@ LL | static A: usize = 0;
14
14
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
15
15
|
16
16
= 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)
18
18
19
19
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
20
20
--> $DIR/not-an-allocator.rs:2:1
@@ -23,7 +23,7 @@ LL | static A: usize = 0;
23
23
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
24
24
|
25
25
= 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)
27
27
28
28
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
29
29
--> $DIR/not-an-allocator.rs:2:1
@@ -32,7 +32,7 @@ LL | static A: usize = 0;
32
32
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
33
33
|
34
34
= 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)
36
36
37
37
error: aborting due to 4 previous errors
38
38
0 commit comments