]> git.lizzy.rs Git - rust.git/blob - src/test/ui/allocator/not-an-allocator.stderr
Auto merge of #93718 - thomcc:used-macho, r=pnkfelix
[rust.git] / src / test / ui / allocator / not-an-allocator.stderr
1 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2   --> $DIR/not-an-allocator.rs:2:11
3    |
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`
8    |
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)
11
12 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
13   --> $DIR/not-an-allocator.rs:2:11
14    |
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`
19    |
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)
22
23 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
24   --> $DIR/not-an-allocator.rs:2:11
25    |
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`
30    |
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)
33
34 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
35   --> $DIR/not-an-allocator.rs:2:11
36    |
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`
41    |
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)
44
45 error: aborting due to 4 previous errors
46
47 For more information about this error, try `rustc --explain E0277`.