]> git.lizzy.rs Git - rust.git/blob - src/test/ui/allocator/not-an-allocator.stderr
Allow combining -Cprofile-generate and -Cpanic=unwind when targeting
[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:1
3    |
4 LL | static A: usize = 0;
5    | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
6    |
7    = note: required by `std::alloc::GlobalAlloc::alloc`
8    = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
9
10 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
11   --> $DIR/not-an-allocator.rs:2:1
12    |
13 LL | static A: usize = 0;
14    | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
15    |
16    = note: required by `std::alloc::GlobalAlloc::dealloc`
17    = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
18
19 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
20   --> $DIR/not-an-allocator.rs:2:1
21    |
22 LL | static A: usize = 0;
23    | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
24    |
25    = note: required by `std::alloc::GlobalAlloc::realloc`
26    = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
27
28 error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
29   --> $DIR/not-an-allocator.rs:2:1
30    |
31 LL | static A: usize = 0;
32    | ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
33    |
34    = note: required by `std::alloc::GlobalAlloc::alloc_zeroed`
35    = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0277`.