fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.1 KiB47 linesraw
1error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2  --> $DIR/not-an-allocator.rs:2:11
3   |
4LL | #[global_allocator]
5   | ------------------- in this procedural macro expansion
6LL | 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
12error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
13  --> $DIR/not-an-allocator.rs:2:11
14   |
15LL | #[global_allocator]
16   | ------------------- in this procedural macro expansion
17LL | 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
23error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
24  --> $DIR/not-an-allocator.rs:2:11
25   |
26LL | #[global_allocator]
27   | ------------------- in this procedural macro expansion
28LL | 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
34error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
35  --> $DIR/not-an-allocator.rs:2:11
36   |
37LL | #[global_allocator]
38   | ------------------- in this procedural macro expansion
39LL | 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
45error: aborting due to 4 previous errors
46
47For more information about this error, try `rustc --explain E0277`.