Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
error: cannot define multiple global allocators | ||
--> $DIR/two-allocators.rs:6:1 | ||
| | ||
LL | static B: System = System; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
note: the previous global allocator is defined here | ||
--> $DIR/two-allocators.rs:4:1 | ||
| | ||
LL | static A: System = System; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| -------------------------- previous global allocator is defined here | ||
LL | #[global_allocator] | ||
LL | static B: System = System; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot define a new global allocator | ||
|
||
error: aborting due to previous error | ||
|