rustc_data_structures::static_assert!(false)
does not error
#65300
Labels
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
1.40.0-nightly 2019-10-09 20cc75272619cc452e3a
The following does not error locally / on the playground https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=9dde03338a31e2f40491a66dc3a18761
If I copy paste the macro into the same file, it errors as expected https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=bec79345cfe7cecf1b92eed6c2736152
Checking other macros,
rustc_data_structures::static_assert_size
(which is defined next tostatic_assert
) andstatic_assertions::const_assert
error as expected.The text was updated successfully, but these errors were encountered: