]> git.lizzy.rs Git - rust.git/blob - src/test/ui/allocator/two-allocators.stderr
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / allocator / two-allocators.stderr
1 error: cannot define multiple global allocators
2   --> $DIR/two-allocators.rs:6:1
3    |
4 LL | static A: System = System;
5    | -------------------------- previous global allocator defined here
6 LL | #[global_allocator]
7    | ------------------- in this procedural macro expansion
8 LL | static B: System = System;
9    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot define a new global allocator
10    |
11    = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
12
13 error: aborting due to previous error
14