
15

Github Show macro name in 'this error originates in macro' message by Aaron1011...
source link: https://github.com/rust-lang/rust/pull/82069
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

This comment has been hidden.
@@ -5,7 +5,7 @@ LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
|
= note: required by `std::alloc::GlobalAlloc::alloc`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
estebank 25 days ago
Contributor
@Aaron1011's observation is exactly the reason I didn't gate that suggestion on being in nightly.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK