You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustc crash when trying to reference static export from another crate #24843
rustc just crashes with no useful errors. I guess you're not supposed to be able to do this anyway and it works if either are const instead of static but it shouldn't crash.
Tested with latest nightly and 1.0.0-beta.2 on windows 64-bit.
error[E0394]: cannot refer to other statics by value, use the address-of operator or a constant instead
--> src/main.rs:3:35
|
3 | static TEST_STR_2: &'static str = &test::TEST_STR;
| ^^^^^^^^^^^^^^^ referring to another static by value
|
= note: use the address-of operator or a constant instead
Activity
thomas-huet commentedon Dec 26, 2016
No longer crashes:
Mark-Simulacrum commentedon May 18, 2017
E-needstest.
steveklabnik commentedon Sep 24, 2018
Triage: not aware of any tests being added.
mbrobbel commentedon Nov 15, 2019
It seems that the E0394 error was removed in #51110 and the tests were moved from compile-fail and ui/error-codes to run-pass.
Rollup merge of rust-lang#71182 - JohnTitor:regression-tests, r=Mark-…
Rollup merge of rust-lang#71182 - JohnTitor:regression-tests, r=Mark-…
Rollup merge of rust-lang#71182 - JohnTitor:regression-tests, r=Mark-…