fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.8 KiB39 linesraw
1error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied
2  --> $DIR/not-an-allocator.rs:2:1
3   |
4LL | static A: usize = 0;
5   | ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
6   |
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)
9
10error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied
11  --> $DIR/not-an-allocator.rs:2:1
12   |
13LL | static A: usize = 0;
14   | ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
15   |
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)
18
19error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied
20  --> $DIR/not-an-allocator.rs:2:1
21   |
22LL | static A: usize = 0;
23   | ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
24   |
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)
27
28error[E0277]: the trait bound `usize: std::alloc::GlobalAlloc` is not satisfied
29  --> $DIR/not-an-allocator.rs:2:1
30   |
31LL | static A: usize = 0;
32   | ^^^^^^^^^^^^^^^^^^^^ the trait `std::alloc::GlobalAlloc` is not implemented for `usize`
33   |
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)
36
37error: aborting due to 4 previous errors
38
39For more information about this error, try `rustc --explain E0277`.