1 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2 --> $DIR/not-an-allocator.rs:2:11
4 LL | #[global_allocator]
5 | ------------------- in this procedural macro expansion
6 LL | static A: usize = 0;
7 | ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
9 = help: the trait `GlobalAlloc` is implemented for `System`
10 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
12 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
13 --> $DIR/not-an-allocator.rs:2:11
15 LL | #[global_allocator]
16 | ------------------- in this procedural macro expansion
17 LL | static A: usize = 0;
18 | ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
20 = help: the trait `GlobalAlloc` is implemented for `System`
21 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
23 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
24 --> $DIR/not-an-allocator.rs:2:11
26 LL | #[global_allocator]
27 | ------------------- in this procedural macro expansion
28 LL | static A: usize = 0;
29 | ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
31 = help: the trait `GlobalAlloc` is implemented for `System`
32 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
34 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
35 --> $DIR/not-an-allocator.rs:2:11
37 LL | #[global_allocator]
38 | ------------------- in this procedural macro expansion
39 LL | static A: usize = 0;
40 | ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
42 = help: the trait `GlobalAlloc` is implemented for `System`
43 = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
45 error: aborting due to 4 previous errors
47 For more information about this error, try `rustc --explain E0277`.