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
#![test] on a crate has an... interesting effect #28134
rustc 1.14.0-nightly (cae6ab1c4 2016-11-05)
error: only functions may be used as tests
--> <anon>:1:1
|
1 | #![test]
| ^
error: aborting due to previous error
Activity
Mark-Simulacrum commentedon Nov 12, 2016
This appears to now be fixed.
jonas-schievink commentedon Nov 12, 2016
Neat! Just needs a test if there isn't one already.
Mark-Simulacrum commentedon Nov 12, 2016
There's https://github.com/rust-lang/rust/blob/master/src/test/compile-fail/issue-14772.rs, but I'm not sure if that qualifies as testing this in particular. If not, I can add one.
Mark-Simulacrum commentedon May 16, 2017
Marking as E-needstest. I don't think the test I linked previously really fits this case.
add test for rust-lang#28134
Auto merge of #54823 - euclio:needs-test, r=alexcrichton